lua-users home
lua-l archive

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


On Sep 17, 2014 3:08 PM, "Philipp Janda" <siffiejoe@gmx.net> wrote:
>
> Am 17.09.2014 um 20:30 schröbte Hao Wu:
>
>> On Wed, Sep 17, 2014 at 11:24 AM, Axel Kittenberger <axkibe@gmail.com> wrote:
>>>
>>>>   I just assume undefined behavior.
>>>
>>>
>>> It _is_ undefined. C does not give any guarantee which side of '+' is
>>
>>
>> it is _unspecified_
>
>
> You are both right :-)
>
> The order of evaluation of subexpressions is unspecified, but multiple modifications of an lvalue between two sequence points invokes undefined behavior.

I'm right too! If I rewrite the function I don't have to remember!