octave-maintainers
[Top][All Lists]
Advanced

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

Re: undefined compound chaining behavior


From: Hossein Sajjadi
Subject: Re: undefined compound chaining behavior
Date: Thu, 12 Jun 2014 19:49:00 +0330

>
> Jordi's point is that just because you type a+=a+=4 at the Octave
> prompt, does not mean this expression is what is ever evaluated in C++
> code. Octave does not write a little C++ file containing the a+=a+=4
> expression and then compile and run it after all.
>
> The expression is broken down by the interpreter code and evaluated in
> whatever way the interpreter was written to do it.

As I say in previous post, it is sufficient to prove that the operator
in both languages are the same.
the .c source file tha directly compiled to menthioned calculator
contain this code in definition of +=:
{  (*(symrec**)(&yyvsp[-2]))->value.var += (*(double*)(&yyvsp[0]));
(*(double*)(&yyval)) = (*(symrec**)(&yyvsp[-2]))->value.var;     }



reply via email to

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