How to define a constructor in a struct?
Minas Mina
minas_mina1990 at hotmail.co.uk
Sun Aug 5 10:14:25 PDT 2012
On Sunday, 5 August 2012 at 16:42:16 UTC, Adam D. Ruppe wrote:
> 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.
I see. Thank you a lot for your help!
More information about the Digitalmars-d-learn
mailing list