lua-users home
lua-l archive

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


As a side note, for clarification,

>
>Having said that, what is the result of the following?
>
>print(a,b = true,nil)
>

It is arguable that the result of this should be equivalent to

print(true, nil)

For the same argument, then, let us take the following:

if a,b = true,nil then
   print(true)
else
   print(false)
end

or similarly:

print(not not(a,b = true,nil))

Where:

if true, nil then print(true) end

Results in the error: 'then' expected near ','

Which is the most logical reduction, imho.

Regards,
-- Matthew P. Del Buono