dcollections ArrayList pb with mixin template

Steven Schveighoffer schveiguy at yahoo.com
Fri Jul 2 05:17:26 PDT 2010


On Thu, 01 Jul 2010 18:26:06 -0400, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Steven Schveighoffer:
>> I think a member initializer has to be a constant expression, like int  
>> i =
>> 1.  Anything else has to be done in the constructor.
>
> There are the static constructors too, for modules, structs, classes.

static constructors don't help initialize member variables.

-Steve


More information about the Digitalmars-d-learn mailing list