lua-users home
lua-l archive

Re: Too many local variables?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Try this:
local a, b = 1, 2
function printab ()
 print (a, b)
end
local a, b = 3, 4
function printab2 ()
 print (a, b)
end
printab ()
printab2 ()

AltStyle によって変換されたページ (->オリジナル) /