cocolabs / pz-zdoc

ZomboidDoc is a Lua library compiler for Project Zomboid.
GNU General Public License v3.0
26 stars 10 forks source link

Annotate overloaded Lua functions #71

Closed matshou closed 3 years ago

matshou commented 3 years ago

Standard Lua language does not support overloaded functions because it does not differentiate between object types passed as function arguments. This is why EmmyLua only displays the first/last overloaded function found.

Since Java very often uses overloaded methods, a lot of compiled Lua methods will be shadowed. However EmmyLua has introduced @overloaded annotation in version 1.1.9 which should solve this problem.

matshou commented 3 years ago

This issue was originally reported as https://github.com/cocolabs/pz-zmod/issues/27.