Don:

> Thanks! We could do this with CTFE, for example:
> 
> immutable ubyte _ctype[256] = padArrayLiteral(256,
>       [
>            _CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,_CTL,
> ...
>            _LC,_LC,_LC,_PNC,_PNC,_PNC,_PNC,_CTL
>       ], 0);
> 
> and this would also work with Stewart's example.
> I don't think we really need language support, the language already has 
> enough power to do this kind of thing in a library.

The ... syntax seems even less needed, if you add that to Phobos. But the $ 
syntax is useful still.

Bye,
bearophile

Reply via email to