thesilverspanch wrote:Im not sure (++ i) is anything like ++i from c++. As far as I can tell, the syntax seams to be (operator var1 var2 ... varN) where the operator is applied to all the vars. There isnt anything so far in Joshs code that we've seen to say if (++ i) is pre or post increment. The ++ at the beginning is just the operator that is being applied to the rest of the variables in the expression, so you could do (++ i j k) and it would increment all of them. Im kind of assuming that its a post-increment, but there is no way to tell as of yet.
Katawa wrote:Why was angelscript insufficient for lt?
Cornflakes_91 wrote:from what i know is that expressions are evaluated from the inside out, so when you have
Func( ++ i) it first increments i (executing the innermost function) and then evaluates the surrounding function.
So ++ i is pre-increment out of execution order
thesilverspanch wrote:Ah! Good point! Sometimes I forget that with recursive expression calling, everything is inside-out and backwards!
for i 0 (< i 5) (++ i)
Users browsing this forum: No registered users and 2 guests