These are chat archives for ChaiScript/ChaiScript

Mar 2018
Peter Repukat
Mar 04 2018 00:19
Hey there.
Just ran into the exact same issue:
Any progress yet?
Jason Turner
Mar 04 2018 01:57
No sorry I haven't done anything with that
Jason Turner
Mar 04 2018 02:03
It is theoretically not difficult to implement. I jsut need to have an option to allow you to replace an existing function registration
Mar 04 2018 21:01
@lefticus I implemented the chained dot calls but only for the c++17 branch ChaiScript/ChaiScript#420
Should I also create it for the develop branch or can you cherry-pick it afterwards? I don't know how to create a pull request for multiple branches if it's even possible.
Tyler Lewis
Mar 04 2018 22:12
Okay, this might be a silly one, but I came across it earlier. I was going to try to submit a patch but I have no idea how to fix it (parsers scare me).
for (var i = 0; i < 10; ++i) { } //Okay
for (var i = 0; i < 10; i+=1) { } //Okay
for (var i = 0; i < 10; i++) { } // "Incomplete 'for' expression" during evaluation at (1, 26)"
Would there be any way to add support for the post-increment syntax?
Mar 04 2018 22:26
@tlewiscpp I also spent quite some time to get my head around the parsing :D
But afaik the postfix in-/decrement is not supported by chaiscript. See: ChaiScript/ChaiScript#210
I don't know the current status about it but if it isn't implemented then only adapting the parser won't do the trick I guess.
Jason Turner
Mar 04 2018 23:08
Yeah, I tried to implement it in the parser and failed :D
@StanEpp Just do it on the C++17 branch, that will eventually become the develop. Probably after I make a new release in the 6.x series (which I really need to do)