Eric R. Smith
Eric R. Smith
I think this kind of thing could be added at run time with a TinyScript_Define(). At least, that's the intention. I'd like to minimize additions to the core language to...
Unfortunately tinyscript only allows numbers in expressions and function calls right now.
@daniellandau : Having a list data structure sounds like it would be very useful, so yes, please open a pull request. Thanks!
Spin definitely expects memory consistency, and we probably should try to preserve it as much as possible. Which conflicts with the desire to optimize code that's using globals / member...
method_pointers is declared as a LONG variable in the VAR section, so there should be no need to use LONG[method_pointers] in either compiler. On the other hand it should probably...
Actually no, looking at this in more detail, `LONG[method_pointers][0]` is not at all the same as `method_pointers[0]`. The first one adds an additional level of indirection, that is, it fetches...
Ah, I see. I'll try to fix this. For now you can work around it with: ``` PUB call_service_method(m) | f f := LONG[methods_pointer][m]; f() ```
This is fixed in flexprop 5.9.22-beta.
Some of these problems would be simplified if we had a "stack only" compilation mode where all functions are compiled with locals and arguments on the stack. Performance would be...
I think this should be fixed now, thanks for bringing it up.