Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: Call by Result Date: Fri, 10 Jun 2011 11:55:15 -0700 Organization: A noiseless patient Spider Lines: 38 Message-ID: <8jp4v6pe7pfin30rr27attfk2i8bus0fg3@4ax.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="7Qrvczazr82YckO5XW8Vtw"; logging-data="18868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X441pFJlCNNnOqtDEkRi/Sx21keQEnBg=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:+T3fLEuuLv2BRmihrTFd082LwdI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5197 On 10 Jun 2011 13:47:27 GMT, ram@zedat.fu-berlin.de (Stefan Ram) wrote: >Gene Wirchenko writes: >>I wish to call by result with a method. [snip] >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. >>String ReturnString=""; >>boolean DidItWork=GetString(ReturnString); > > 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