Skip to content

Handle impossible fields in struct literals#34

Merged
colinator27 merged 3 commits into
UnderminersTeam:mainfrom
setupwitch:impossible-fields
Jul 3, 2026
Merged

Handle impossible fields in struct literals#34
colinator27 merged 3 commits into
UnderminersTeam:mainfrom
setupwitch:impossible-fields

Conversation

@setupwitch

Copy link
Copy Markdown
Contributor

solves #23

This solves the issue of struct literals with impossible fields compiling to { variable_struct_set(self, "(", value) } on both the compiler and decompiler by putting them in quotes. (e.g. { "(": value })

However, there are a few (fixable) caveats with this change, all GML keywords are now also quoted in order to prevent errors with compilation.

@setupwitch setupwitch changed the title Impossible fields Handle impossible fields in struct literals Jul 3, 2026
@natroute

natroute commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

yuuuup

@colinator27 colinator27 linked an issue Jul 3, 2026 that may be closed by this pull request
@colinator27 colinator27 merged commit 3f4a8ff into UnderminersTeam:main Jul 3, 2026
2 checks passed
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 this pull request may close these issues.

Structs with "impossible" fields do not decompile correctly.

3 participants