totalspectrum / spin2cpp

Tool to convert Parallax Propeller Spin code to PASM, C++ or C
Other
46 stars 17 forks source link

Abstract objects don't work anymore #445

Closed Wuerfel21 closed 6 months ago

Wuerfel21 commented 6 months ago

I often use abstract objects when I just want to access constants from an object.

Now I get this crap: config.spin2:58: error: syntax error, unexpected '.', expecting '[' (the dot being the constant access on the abstract object)

I bisected breakage to commit e6b1d1e8425b6041731b0c0b0f1a4346b3138ea4

totalspectrum commented 6 months ago

That should be fixed now. I didn't actually intend abstract objects to be usable that way, but it does seem useful. I've also made it possible to access static data (the DAT section) of abstract objects, since that is shared with all concrete objects.

Wuerfel21 commented 6 months ago

Fix isn't pushed

totalspectrum commented 6 months ago

Ah, the joys of git. It's pushed now. Thanks for checking!