Skip to content

redefine superclass in Object as always returning a class#1799

Open
HoneyryderChuck wants to merge 1 commit intoruby:masterfrom
HoneyryderChuck:superclass-redef
Open

redefine superclass in Object as always returning a class#1799
HoneyryderChuck wants to merge 1 commit intoruby:masterfrom
HoneyryderChuck:superclass-redef

Conversation

@HoneyryderChuck
Copy link
Copy Markdown
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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants