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