Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 446 Bytes

Lua.md

File metadata and controls

31 lines (19 loc) · 446 Bytes

Table of Contents

Lua

Weird behavior


True, False, or not

> return  1 == true
false

Expected result: type error, or true

Result: false

While comparing a boolean and an integer is wrong, raising a type error would be a better idea than returning false.

Tested with: Lua 5.1.5