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

No code outside of functions #35

Open
Garados007 opened this issue Jul 28, 2023 · 0 comments
Open

No code outside of functions #35

Garados007 opened this issue Jul 28, 2023 · 0 comments

Comments

@Garados007
Copy link
Member

Igor ignores all invalid code outside of functions and doesn't report this. I have seen many code examples of function or operation calls outside of functions like this:

Function Test(string a)
    print a
End

Test("this is never executed")
print "this is also never executed"

Function Test2()
End

I would suggest getting rid of such invalid code outside of functions, as it is ignored by Igor and only confuses the reader.

I think this is a known issue for WM, but they can't fix it because it would have a too big impact on their compiler.

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

No branches or pull requests

1 participant