[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Assignment not operator
- From: Matthew Paul Del Buono <delbu9c1@...>
- Date: Sat, 9 Aug 2008 23:37:27 -0400 (EDT)
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