Lua Trivia

lua-users home
wiki

Showing revision 3

Question A

given a.b defined in terms of:

function(arg) print(arg) end
what would you expect the following to print?

a.b(a)
a:b()

Question B

What does the following code print, and why?
a = 2
b = 3
c = a-- * b++
print(a, b, c)
LuaTriviaAnswers


RecentChanges · preferences
edit · history · current revision
Edited December 8, 2007 3:04 pm GMT (diff)