Reopening the debate about non-nullable-by-default: initialization of member fields

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Sat May 3 01:59:31 PDT 2014


I would allow this bug. This also happens with 'final' member in 
Java, and there you expect the value to not be null. A rule of 
thumb should be to never call virtual methods from inside of a 
constructor. Bad things happen.


More information about the Digitalmars-d mailing list