Using Nasal functions: Difference between revisions

(→‎Default values for function arguments: I just tried it -- and the default values must be LAST, not first!)
Line 217: Line 217:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
#Correct:
#Correct:
var log_message = func(msg="error", object="ground", line) {
var log_message = func(line,msg="error", object="ground") {
     #some code
     #some code
}
}
842

edits