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

spx: global variables' definition #752

Open
nighca opened this issue Aug 14, 2024 · 1 comment
Open

spx: global variables' definition #752

nighca opened this issue Aug 14, 2024 · 1 comment
Assignees

Comments

@nighca
Copy link
Collaborator

nighca commented Aug 14, 2024

Image

@nighca nighca changed the title spx: global variables spx: global variables' definition Aug 14, 2024
@nighca nighca self-assigned this Aug 23, 2024
@nighca
Copy link
Collaborator Author

nighca commented Sep 9, 2024

1. About 1st var block

It is by design of Go+ classfile: only the first var block will be transformed to fields of result class (struct). The following var blocks will be transformed to global variables in package.

We may leverage "auto-format" to merge multiple var blocks — package-scope global variables are meant to be avoid.

2. About auto loadSprite

At least we should not panic even if loadSprite failed. goplus/spx#330

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

No branches or pull requests

1 participant