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

redefine superclass in Object as always returning a class #1799

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HoneyryderChuck
Copy link
Contributor

@HoneyryderChuck HoneyryderChuck commented Apr 12, 2024

the only instance of a nil superclass is basic object.

This is a proposal to make this definition more precise. open for discussion.

the only instance of a nil superclass is basic object
@soutaro
Copy link
Member

soutaro commented Apr 15, 2024

@HoneyryderChuck

I don't think moving the superclass method definition to Object is a good idea. The method is defined in Class class.

Having a special definition in BasicObject might make sense, because we can skip testing superclass value every time, except it's BasicObject.

@soutaro soutaro added this to the RBS 3.5 milestone Apr 15, 2024
@soutaro soutaro removed this from the RBS 3.5 milestone Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants