[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaL_checkudata for invalid index?
- From: Philipp Janda <siffiejoe@...>
- Date: Fri, 22 Feb 2013 00:35:51 +0100
Am 21.02.2013 22:42, schrieb Sean Conner:
-spc (So, why does it trigger on parameter 3 first? Because of the rules
of C when evaluating parameters of a function---they're evaluated
from right to left. Why that way? I'll leave that as an exercise
for the reader ... )
That was a trick question, of course. And the answer is: Bad Luck!
According to C89, 220.127.116.11 "Function calls":
> The order of evaluation of the function designator, the arguments,
> and subexpressions within the arguments is unspecified, but there is a
> sequence point before the actual call.