It's currently broken in two places -- one is because of not supporting caps, and the other is that all() expects only an integer-indexed array.
I plan to review the way all() works, and could possibly also alias _G to _g. Out of curiosity, what kind of thing would you use it for? Might be useful for debugging, but apart from that I imagined pico-8 would be too limited to do anything fancy with it!
I wanted to use it for game state management, with generated function names before I discovered that it doesn't work. Something like _G[statename+"_init"](), _G[statename+"_update"]() etc. so i don't need to hold references for those functions just adhere to a naming convention.
I don't know how much sense that would make anyway, I just don't like the way I currently doing this, and that was one of the ideas how to change it. :)
[Please log in to post a comment]