How to define a constructor in a struct?

Jacob Carlborg doob at me.com
Sun Aug 5 10:28:30 PDT 2012


On 2012-08-05 18:30, Minas Mina wrote:
> Thank you. Is it the way it is to have compatibility with C structs?

No, I don't think so. If I recall correctly it has something to do with 
the .init property and the compiler need to know the initialization code 
of the sturct at compile time.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list