Michel Fortin:
> Ouch! I agree with the idea, but can't you find a better syntax? What 
> about this:
> 
>       immutable ubyte a[256] = [1,2,3,4...]; // rest of array is padded with 
> 4s.
>       immutable ubyte b[256] = [1,2,3,4]; // error: not enough values

I think this is better (note the last comma) to avoid confusion with FP values:
immutable float a[10] = [1., 2., 3., 4., ...];

Nice, and better than mine. Basically here I can accept almost any syntax that 
is explicit :-)
Thank you :-)

Bye,
bearophile

Reply via email to