G
Gene Wirchenko
[snip]Gene Wirchenko said:I wish to call by result with a method.
http://en.wikipedia.org/wiki/Evaluation_strategy
Did you all knew this before you answered? The reference
has to be /uninitialized/ for an evaluation strategy to be
called "call by result"!
The various call types are not exotic. If you do not know COLD
the terms call-by-reference, call-by-value, call-by-result, and
call-by-value-result (also known as copy-restore), you have a bit of
studying to do. Well, call-by-name is somewhat exotic, but it is
thought to have been a bit of an accident.
But in Java we cannot pass uninitialized references!
A weakness. My UNfavourite Java compilation error message is
that the variable might not have been initialised in code where it
does not matter.
Especially, in this case, the reference is not uninitialized.
I have to do that to kowtow to Java.
[snip]
Sincerely,
Gene Wirchenko