lua-users home
lua-l archive

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


On 22/10/2011, at 12:54 AM, Antonio Scuri wrote:

>   Hi,
>  
>   I created a class for arrays that use the arithmetic and relational operators. But I would like also to implement logical operators so I can write:
>  
> d = a<b and b<c
>  
>   I defined the result of the relational operators as another array of booleans with the result for each element.

How did you manage to return something other than a boolean from a relational operator?