lua-users home
lua-l archive

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


On Fri, 7 Jun 2019 at 09:34, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> All feedback welcome. Thanks.

I noticed the new string metamethods: why only
sub,idiv,pow,div,add,mul,unm,mod? Why not the other operators (e.g.
bitwise-and)?
Isn't this a bit of a footgun in regards to types?


Some errors:
lvm.c:1287:9: runtime error: division by zero SUMMARY:
UndefinedBehaviorSanitizer: undefined-behavior lvm.c:1287:9 in
lvm.c:1319:9: runtime error: division by zero SUMMARY:
UndefinedBehaviorSanitizer: undefined-behavior lvm.c:1319:9 in
lvm.c:1291:9: runtime error: division by zero SUMMARY:
UndefinedBehaviorSanitizer: undefined-behavior lvm.c:1291:9 in
lvm.c:1343:9: runtime error: division by zero SUMMARY:
UndefinedBehaviorSanitizer: undefined-behavior lvm.c:1343:9 in