* Stuart Buchanan -- Friday 23 November 2007:
> I must admit that I was completely unaware of this restriction
> in Nasal.

Something that allows to do more than you usually want can hardly
be called a "restriction". It's a feature. And if you don't want
that feature, then you have to restrict your code by using "var",
which is its purpose.



> I think this is important enough that it should be added to the
> Nasal pages of the wiki, to help educate new contributers.

That's planned. But I don't think that this is the first source
for people starting to write Nasal. All the scripts in use are.
I'm still occasionally fixing some old functions that were
written before "var" existed, also replacing arg[n] with named
arguments (which are easier to read and a bit faster).



> I've quickly gone over my recent patches for the chat system and
> they both look correct in this regard, though it is possible that
> I have missed one or two.   

Except that you have stripped my correctly used "var" from functions
that you've borrowed from prop-key-handler.nas.  :-}

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to