Error: constant false is not an lvalue

Rainer Deyke rainerd at eldwood.com
Sun Aug 30 20:44:48 PDT 2009


Jarrett Billingsley wrote:
> "Members are always initialized to the default initializer  for their
> type, which is usually 0 for integer types and NAN for floating point
> types. This eliminates an entire class of obscure problems that come
> from neglecting to initialize a member in one of the constructors."
> http://www.digitalmars.com/d/1.0/class.html
> 
> This suggests, to me, that default initialization _is_ - at least in
> Walter's mind - supposed to eliminate bugs.

You (and possibly Walter) are comparing default initialization to
uninitialized variables, which is a false dichotomy.  I'm comparing
default initialization to explicit initialization.


-- 
Rainer Deyke - rainerd at eldwood.com


More information about the Digitalmars-d-learn mailing list