Curtis L. Olson wrote: > Finally, I get to realize my dream of re-implimenting all FG > algorithms using recursion.
Not to ruin the joke, but you could do that already. Nasal has always been a fully functional language, with recursion, lexical closures and anonymous lambda expressions. :) This feature allows for calling Nasal scripts (not functions) recursively. That is, have a command binding that is a Nasal script, that then calls another FGCommand object that is implemented in Nasal. Before, this wasn't possible because there was only one execution context for the scripting engine. Now you can have lots. So you can, for example, stash one away on a timer while another one runs. This allows for pseudo-multithreading of many scripts at once, which run forever in loops like: while(1) { if(NeedToUpdate()) { DoSomethingUseful(); } sleep(0.2); } This kind of programming can be simpler than running from a timer. Although the context is fairly heavy-weight compared with a timer entry, so we don't want thousands of them sitting around. Andy _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d