[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Assignment not operator
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Sat, 9 Aug 2008 20:57:22 -0700
Also, what about __newindex for an "assignment operator"
wes
On Sat, Aug 9, 2008 at 8:37 PM, Matthew Paul Del Buono
<delbu9c1@erau.edu> wrote:
> 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
>
>
>