Null references (oh no, not again!)

Ary Borenszweig ary at esperanto.org.ar
Wed Mar 4 14:25:10 PST 2009


Walter Bright escribió:
> Ary Borenszweig wrote:
>> It's not like that. They don't require you to initialize a variable in 
>> it's initializer, but just before you read it for the fist time. 
>> That's very different.
> 
> The only way to do that 100% reliably is to instrument the running code.

Java does it on compile time.

Ah, I forgot to say, this is only done for local variables. For member 
variables the default initializer is used.

If it's done only for local variables then you don't need to instrument 
the running code.



More information about the Digitalmars-d mailing list