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

Function Redefinition causes compilation to fail silently #33

Open
fromanan opened this issue Nov 23, 2023 · 0 comments
Open

Function Redefinition causes compilation to fail silently #33

fromanan opened this issue Nov 23, 2023 · 0 comments

Comments

@fromanan
Copy link

fromanan commented Nov 23, 2023

This issue came up a few times for me so I thought I'd make note of it. It's not a huge deal, it can just be a little bit tricky when working with larger mods with similarly named functions. Haven't looked into the compilation process used, but it should be a fairly trivial fix to look for 2 names or checking the symbol table. (Low priority / QoL fix)

Specific example:

When defining multiple global functions with the name "LandShip" inside the same namespace of a script, the compiler will give the same message as success (press any key to continue...) without any warnings. I actually noticed it was failing because it did not produce a file and the usual warning message about experimental features (the guard ones) was lacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant