lua-users home
lua-l archive

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


> > Concerning (2): not all types have metatables so boolean is still
> > somewhat of a problem then. (I can live with it.)
> 
> We can use the metatables for strings (if at least one argument is
> a string)! This already works both in 5.1 and 5.2:
> 
> [...]

PS: the same trick works for numbers and numeric operators.

-- Roberto