These are chat archives for ChaiScript/ChaiScript

4th
Mar 2018
Peter Repukat
@Alia5
Mar 04 2018 00:19
Hey there.
Just ran into the exact same issue: http://discourse.chaiscript.com/t/is-there-a-way-to-redefine-reload-a-type-in-chaiscript/203/22
Any progress yet?
Jason Turner
@lefticus
Mar 04 2018 01:57
No sorry I haven't done anything with that
Jason Turner
@lefticus
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
StanEpp
@StanEpp
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
@tlewiscpp
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?
StanEpp
@StanEpp
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
@lefticus
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)