Getting .init of a Typetuple
Simen kjaeraas
simen.kjaras at gmail.com
Thu Aug 19 13:35:55 PDT 2010
Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
> What, that's *five* more characters, five! I win, I win!
;'(
> More seriously, yours might be more 'solid', but isn't enum implicit in
> this
> case?
Seems you are right. I thought the template would work as a namespace,
giving this situation:
Init!int = 4;
int a = Init!int; // What, 4?!
But such is not the case.
> Anyway, T.init should exist, since "T Init;" works...
Indeed.
--
Simen
More information about the Digitalmars-d-learn
mailing list