octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chaining compound assignment results in undefined behavior


From: Richard Crozier
Subject: Re: chaining compound assignment results in undefined behavior
Date: Fri, 06 Jun 2014 17:36:24 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

On 06/06/2014 17:33, Jordi Gutiérrez Hermoso wrote:
On Fri, 2014-06-06 at 17:20 +0330, Hossein Sajjadi wrote:


  This issue have been resolven in Java.

I don't think there is any particular reason to do whatever Java does
here. Octave's behaviour here seems to be another sensible thing to
do. Normally = is right-associative, so I see no reason for += to be
left-associative.

- Jordi G. H.



I would certainly be a lot more surprised by what Java does than what Octave does. I would expect assignments to happen right-to-left.

Richard


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]