Parameterized Structs

bearophile bearophileHUGS at lycos.com
Thu Mar 3 09:57:04 PST 2011


spir:

> because of a bug: ElementType!string 
> returns dchar!!! Thus, it is would not be possible, I guess, to declare klass's 
> type in the struct definition.
> 
> * You must pass an init string (even if "") to call this() and construct klass. 
> Because of another bug: there cannot be parameter-less constructors for 
> structs.

I think those two are not bugs.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list