How to define a constructor in a struct?

Adam D. Ruppe destructionator at gmail.com
Sun Aug 5 09:42:15 PDT 2012


On Sunday, 5 August 2012 at 16:30:48 UTC, Minas Mina wrote:
> Thank you. Is it the way it is to have compatibility with C 
> structs?

I'm not sure... I think so in part, but I think another part of 
it is to make sure that struct constructors can't bring a hidden 
cost to generic code.


More information about the Digitalmars-d-learn mailing list