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

Make = optional in Global directive #190

Closed
erkyrath opened this issue Jun 17, 2022 · 0 comments · Fixed by #195
Closed

Make = optional in Global directive #190

erkyrath opened this issue Jun 17, 2022 · 0 comments · Fixed by #195

Comments

@erkyrath
Copy link
Contributor

The compiler supports:

Constant c1 1;
Constant c2 = 2;
Global g1 = 1;

But not:

Global g2 2;

This has been tripping people up for a long time.

The original reason for the mandatory = was to distinguish it from this case:

Global arr --> 4;

...but this has long since been deprecated in favor of the Array directive. (It prints an "Obsolete usage" warning.)

I think we can get rid of the Global arr --> ... syntax entirely and support Global glob val; instead.

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

Successfully merging a pull request may close this issue.

1 participant