From: Danny O cuiv Date: 2009-05-13T01:29:56+09:00 Subject: Re: Superclass of eigenclass Gary Wright wrote: > Confusion comes from: > -- the super keyword uses the method lookup chain, not the superclass > chain > -- the ancestor method reports on the method lookup chain, not the > inheritance chain Aaaah! The penny finally drops! Thanks a million for this, Gary. I think I'd have been banging my head against a brick wall for ages without your explanation. I'd probably still stand by my earlier assertion that it's a conceptual mess, however. It's just that now that I know what the semantics really are, I can work with it. Bad naming trips up even very experienced people. For example, in RPL, no lesser luminaries than David Flanagan and Matz write on page 238 that super "invokes a method with the same name as the current one, in the superclass of the current class". Given your first point above, it's clear that this is not just misleading, it's also Just Plain Wrong (tm). That said, for my own purposes, I now have a pretty good picture of the semantics (naming snafus and all) and can definitely work with that picture. So thanks again. Regards, Danny -- Posted via http://www.ruby-forum.com/.