On 14 Sep 2011, at 12:00, Stuart Buchanan wrote: > OK. We've got something similar already in the C code for exactly this > purpose. Might be more efficient to simply expose that over Nasal, but > I'm not sure how easy that would actually be.
Pretty trivial, for a function such as sg_random, unless I'm missing something really subtle. Basically add a f_random wrapper in NasalSys.cxx, add an entry to the static table at the bottom of the file, and you should be done. Oh, except you need to pick a name that doesn't clash with any internal Nasal rand/random. James ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel