Issue 1323

bearophile bearophileHUGS at lycos.com
Sun Jan 9 06:38:43 PST 2011


Tomek Sowiñski:

> If it's about compile-time, it can be done with template wizardry:
> 
> x in [1, 5, 7]  ->  x.in_!(1, 5, 7)

Or better, as a built in feature of arrays :-) But the asymmetry between literals and normal arrays is silly.

Bye,
bearophile


More information about the Digitalmars-d mailing list