skip to main
|
skip to sidebar
Prolific Optimism
Thursday, January 10, 2008
Return is not a function
> return ReturnArgs(1,2,3)
1, 2, 3
> return (ReturnArgs(1,2,3))
1
wrapping what follows return in parentheses forces only a single argument out of the ReturnArgs function.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2008
(11)
►
June
(1)
▼
January
(10)
Colon notation
The following two tables are equivalent:NTI = {["J...
Tables
Common bugs - global instead of local
Upvalues
Lua local functions
Return is not a function
A little bit of Lua weirdness
Lua reading
Everex
About Me
Methedras
View my complete profile
No comments:
Post a Comment