* Laurence Vanek -- Saturday 31 March 2007:
> I believe there is still an issue with the nasal errors.
FYI: two days ago Nasal was updated and allows now to leave
group braces away in all cases where a group only contains
one statement. So, instead of
if (foo) {
print("bar");
}
one can now write:
if (foo)
print(bar);
io.nas and tutorial.nas use that feature already, which is
why they require sg & fg from cvs/head. sg/fg versions that
are older than a day and a half can't run these scripts.
io.nas does also use functions that weren't available before.
BTW: even functions can now drop the braces (not that it
buys you much, but it's nice that there is no exception):
var f = func print("foo");
Hash definitions do still require curly braces, of course. Another
new feature is concatenation of vectors, which is already used
in $FG_ROOT/Aircraft/Generic/aar.nas.
m.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users