Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script compiler: register static functions as "name^argnum" symbol #2300

Open
ivan-mogilko opened this issue Jan 18, 2024 · 0 comments
Open
Labels
context: script compiler type: enhancement a suggestion or necessity to have something improved

Comments

@ivan-mogilko
Copy link
Contributor

Script compiler registers struct member functions using a "name^argnum" notation. This helps engine to link different versions of API function with extended argument list.

But for some reason same is not done for static functions, which do not belong to a struct. Although it is a common idea that we should move towards having all functions belonging to some type, like under a namespace, there are still a lot of those which are not, and sometimes there's a need to extend their arg list.

Need to investigate if there's any technical reason not to use same registration method for static functions, and if not then register them as "name^argnum".

This problem refers to both new and old compiler, new one is a priority but old should be adjusted to if possible.

@ivan-mogilko ivan-mogilko added type: enhancement a suggestion or necessity to have something improved context: script compiler labels Jan 18, 2024
@ivan-mogilko ivan-mogilko added this to the 4.0.0 (preliminary) milestone Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: script compiler type: enhancement a suggestion or necessity to have something improved
Projects
None yet
Development

No branches or pull requests

1 participant