Using Nasal functions: Difference between revisions

→‎Default values for function arguments: I just tried it -- and the default values must be LAST, not first!
m (→‎Simple examples: http://forum.flightgear.org/viewtopic.php?f=30&t=28660&p=274634&hilit=spaghetti#p274625)
(→‎Default values for function arguments: I just tried it -- and the default values must be LAST, not first!)
Line 206: Line 206:
</syntaxhighlight>
</syntaxhighlight>


If some arguments have default values and some do not, those with default values must come first in the argument list:
If some arguments have default values and some do not, those with default values must come last in the argument list:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
842

edits