PostIncrement not supported?


I’m just learning ChaiScript and investigating what is possible.

I have

chai("var i;for (i = 0;i < 5; i++ ) {test(i);}");

which gives me an error " Incomlete prefix ‘+’ "


chai("var i;for (i = 0;i < 5; ++i ) {test(i);}");

is fine.

Is this right, or am I doing something wrong?


P.S. I am a noob


Correct, post-increment is not supported. It’s harder to parse and we concluded early that there’s almost no reason to have it.

I did investigate adding it, but have not yet.



Whew! Thanks! Thought it was me :slight_smile: