Hi Melchior, Melchior Franz wrote: > Most people seem to think that "var" in Nasal is a kind of > redundant decoration, and really just noise. It isn't. > In fact, I consider Nasal code *not* using it broken.
I must admit that I was completely unaware of this restriction in Nasal. Like many people I had falsely assumed that non-var variables were local in scope, even though with a bit of thought it should have been obvious that this was wrong. Thanks very much for clarifying it. I think this is important enough that it should be added to the Nasal pages of the wiki, to help educate new contributers. Otherwise they'll get into bad habits and you'll have to write a similar email in a year or so. I'd suggest simply including the statement that all variables should be declared as "var" in a syntax section at the top, with the explanation as a footnote. 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. Best Regards, -Stuart ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ------------------------------------------------------------------------- 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