FAForever / FAForever/fa

Some features of Lua in FA

Open
#3,664 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.