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

Compiler: Global variables without / are not supported #2139

Open
Furrior opened this issue Dec 15, 2024 · 0 comments · May be fixed by #2177
Open

Compiler: Global variables without / are not supported #2139

Furrior opened this issue Dec 15, 2024 · 0 comments · May be fixed by #2177
Labels
Compiler Involves the OpenDream compiler

Comments

@Furrior
Copy link
Contributor

Furrior commented Dec 15, 2024

Some exotic codebases hate /s. OD supports /less vars inside of defenitions, but it cant parse them at global level.
Example:

var/a = 1
var b = 2

/world/New()
    world.log << a
    world.log << b

This will give such a set of errors:

Error OD0001 at test.dme:3:8: Expected end of object statement
Warning OD0000 at test.dme:3:8: Error recovery had to skip to test.dme:5:8
Error OD0404 at test.dme:7:19: Unknown identifier "b"
@Furrior Furrior changed the title Global variables without / are not supported Compiler: Global variables without / are not supported Dec 15, 2024
@wixoaGit wixoaGit added the Compiler Involves the OpenDream compiler label Dec 18, 2024
@ike709 ike709 linked a pull request Jan 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants