builder icon indicating copy to clipboard operation
builder copied to clipboard

spx: global variables' definition

Open nighca opened this issue 1 year ago • 1 comments

Image

nighca avatar Aug 14 '24 09:08 nighca

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. https://github.com/goplus/spx/issues/330

nighca avatar Sep 09 '24 01:09 nighca