Create uninitialised mutable struct

I have a mutable struct, E.g.

mutable struct MyExampleStruct
	a::Cdouble
	b::Cdouble
end

which I wish to create with uninitialised fields. I don’t want to use an inner constructor to achieve this. This will be passed to Fortran code using ccall. Does anyone know how I can accomplish this? Thanks.

Why not? How it is constructed is nothing to do with Fortran.

1 Like