lua-users home
lua-l archive

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


"Mustafa K. Atlihan" <mkatlihan@gmail.com> writes:

>  
>> And if so, why not 'overload' the other comparison operators, 'and' and
>> 'or' ??
>
> I would agree. All logical operators could/should have that
> flexibility, no particular reason to single out 'and' or 'or'.

Since the behavior of short-circuit operators can't sensibly be emulated
by a function, there is no good point to overloading them: overloading
should not change the semantics of an operation.

> Btw, I am new to this group so I am not sure what to expect from the
> developers based on todo requests appearing here. Any feedback on what
> I should not be expecting?

Magic.

-- 
David Kastrup