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.