Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
meta-class subclass relationships
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Greg Weeks, post: 4584799"] *Many* thanks for the info. I was going to swallow the 1.8.6 behavior, but I much prefer the Figure 24.2 behavior. On the other hand, it is not true that A.class == $Meta_A. For the "class" message, the rule seems to be that you follow the inheritance chain until you find a non-virtual class. This would be a reasonable behavior for the "superclass" message too, I think. (Preferable, perhaps.) As for "Meta": I don't know if the English language is precise on this point. As I understand it, a meta-foo is a foo *about* foos. A meta-class is a class with class instances, I would think. Although most Ruby meta-classes are virtual, we can still mix modules into them, so they provide a powerful mechanism for meta-programming. That's why I'm inclined to call them (limited) meta-classes. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
meta-class subclass relationships
Top