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

Edgecase with global structs, tasks with same name as that struct #13

Open
shanereetz opened this issue Jul 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@shanereetz
Copy link
Contributor

shanereetz commented Jul 25, 2024

Explanation

There's an edge-case where a global struct could collide with a task, if the task had the same name as the global struct.

Example:
Program with local var: Task:var (note the colon)
Global with the same name: Task.var

While this isn't common, as a global ideally has the g prefix (i.e. gVar), it is a case that the current code does not support. The values would be overwritten ask "Task:var" and "Task.var" are treated identically in parsing.

Potential Solution

Somehow maintain the data that "Task:" is a task, not a global.

@shanereetz shanereetz added the bug Something isn't working label Jul 25, 2024
@shanereetz shanereetz changed the title Edgecase with global structs and Edgecase with global structs, tasks with same name as that struct Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant