Skip to content

Implement #instVarNamed: prim, fix SClass' handling of number of fields - #43

Merged
smarr merged 6 commits into
SOM-st:masterfrom
smarr:inst-var-named
Oct 9, 2026
Merged

smarr merged 6 commits into
SOM-st:masterfrom
smarr:inst-var-named

Conversation

@smarr

@smarr smarr commented Oct 9, 2026

Copy link
Copy Markdown
Member

The #instVarNamed: primitive was not yet implemented, and revealed a bug in SClass.
At some point, we changed how the fields of superclasses are handled.
We now require the superclass to be loaded, and simply make superclass fields part of the classes fields. But when this change was done, we missed getInstanceFieldName() and getNumberOfInstanceFields(). This is now fixed.

There are a few more GitHub Action fixes to keep things working.

smarr added 6 commits October 9, 2026 11:58
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
At some point, we changed how fields from superclasses are dealt with, and these two methods were overlooked in that change.
Since fields from the superclass are integral part of the class at this point, these two methods are much simpler.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the bug label Oct 9, 2026
@smarr
smarr merged commit 3d8ad6d into SOM-st:master Oct 9, 2026
2 checks passed
@smarr
smarr deleted the inst-var-named branch October 9, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant