lua-users home
lua-l archive

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

> My logic was that '-' is likewise used as unary prefix, and binary infix, so
> my /hope/ was that the mechanism should be the same for any
> character. It looked quite liberal in the source, seems to work but I am
> not sure. It looked like unaries are protected by a high precedence and
> that might cause unexpected results, haven't mulled that really.

This were my firsts tests. I dont see the modulo function altered.
Maybe in some more wiered conglomerates its changes precedence, but i
doubt it. Ffor most parsers prefix and infix are easy to distinguish,
so without deeper knowledge of the Lua one, I dare say it will be as