What's the replacement for this array initialization: "ubyte[4096] window =0;"
Marco Leise
Marco.Leise at gmx.de
Fri Feb 22 01:04:22 PST 2013
Am Fri, 22 Feb 2013 08:02:14 +0100
schrieb "monarch_dodra" <monarchdodra at gmail.com>:
> That's not entirely true. For integers, the initialization is
> always 0, which is expected and convenient.
Yes, luckily for us integers didn't have a wrong/garbage value
like floats and UTF-8 chars. But the design intent was to
provoke errors on uninitialized variables, so I try to make
that principle mine and initialize even integers to 0
explicitly.
--
Marco
More information about the Digitalmars-d-learn
mailing list