-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fresh objects not treated as fresh? #263
Comments
Hmm. Kernan here http://homepages.ecs.vuw.ac.nz/~mwh/js-kernan/entry/
says "InheritanceError: R2017: The method «e(_)» does not return an object that can be inherited."
I can't run Kernan itself easily as I'm still rebuilding a laptop - J
|
Smallgrace does so recognize it, but crashed because it needs to disambiguate the request I would like to port all of smallGrace's name resolution back into minigrace. I'm thinking about partially-automated Smalltalk to Grace method translation. |
Here is another, slightly different, example we ran into today:
Crashes with the error message:
Yet, if you replace ".empty" by ".withall[]" it works fine, even though the code in the standard prelude is
|
@KimBruce's original example is in file known-failing/transitive_freshness_test.grace. The error message is
and is produced at runtime, because |
The following code should represent legal inheritance as e(j) tail-returns an object. However it crashes:
The error message is
So, it doesn't complain about the inheritance, but it doesn't see the method m from the superclass. This is likely to be a symbol table issue in getting the inherited methods. Or I could be misunderstanding our rules for inheritance!
The text was updated successfully, but these errors were encountered: