Interesting GCC extensions

bearophile bearophileHUGS at lycos.com
Mon Sep 28 12:45:16 PDT 2009


Adam D. Ruppe:
> > Triple points can be used for initializations too:
> > int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
> 
> D's slicing can already do this I believe.

How?

Bye,
bearophile



More information about the Digitalmars-d mailing list