Changeset 442, implicit Vs explicit
Michel Fortin
michel.fortin at michelf.com
Tue Apr 27 10:14:16 PDT 2010
On 2010-04-27 11:50:55 -0400, bearophile <bearophileHUGS at lycos.com> said:
> My opinion is that it's bug-safer something like:
>
> @implicit_filling immutable ubyte _ctype2[256] = [/*128 items here*/];
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
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list