[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: a = b = c order of evaluation weird

Yukihiro Matsumoto

10/3/2007 4:11:00 AM

Hi,

In message "Re: a = b = c order of evaluation weird"
on Tue, 2 Oct 2007 23:25:20 +0900, 7stud -- <dolgun@excite.com> writes:

|I guess it's safer to say that the order of evaluating arguments is
|undefined, unless it is stated somewhere.
|
|Is it defined for ruby?

Two different answers:

* there's no official specification of the language, so that it is
not defined at all.

* but at least the author (me) strongly suggests left-to-right
evaluation order, so it seems we can say it's "defined".

matz.