Some features of Lua in FA
Open
area: code style
status: need rework
status: new issue
type: bug
- Dominant language
- Lua
- Stars
- 264
- Forks
- 260
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 21
Description
If you add the following lines to config.lua:
metacleanup(false)
metacleanup(dummy)
, hidden errors will be detected.
And if you also uncomment __index, then there will be an indecent lot of errors.
Inappropriate interaction with the metatable of type.
Example:
local a=false(or func)
a.x=123
print(a.x) -> 123
local b=false(same type as a)
print(b.x) -> 123
Another feature of FA:
print(nil>0) -> false
print(nil<0) -> true
print(nil==0) -> false
print(nil~=0) -> true
print(false>nil) -> true
print(false<0) -> true
In case of type inequality, their indexes are compared.
Contributor guide
Assessment
This issue has not been assessed yet.