rbs icon indicating copy to clipboard operation
rbs copied to clipboard

redefine superclass in Object as always returning a class

Open HoneyryderChuck opened this issue 1 year ago • 1 comments

the only instance of a nil superclass is basic object.

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

HoneyryderChuck avatar Apr 12 '24 10:04 HoneyryderChuck

@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 avatar Apr 15 '24 04:04 soutaro