Hi -- gabriele renzi <surrender_it / remove.yahoo.it> writes: > il 20 Apr 2004 15:13:04 -0700, David Alan Black <dblack / wobblini.net> > ha scritto:: > > > >> > > >> >FYI, Perl 6's Apocalypse 12 describes a mechanism that seems similar to > >> >yours. You may want > >> >to have a look at it. I think call_up() is "next" or something. > >> > > >> >Yours, > >> > >> and is super() in rubyland (2.0) > > > >That would be strange. Are you sure about that? > > > > > > maybe I misunderstood something? > > the thing the OP requested looks to me the method > decoration/defadvice-ish thing that we'll see in ruby2, and from the > rubyconf 2k3 it seem that the syntax would be: > > def foo:wrap > blabla > super > blablabla > end > > that makes sense cause a redefinition in a subclass may be seen just > like a decoration of the first definition. Yes, I forgot that 'super' was being used for that. But I'm not sure this corresponds exactly to what the OP wanted (a way to access aliased methods, which is what I thought you meant here). But maybe it can be used in some of the same situations. For what it's worth, I don't agree that it's very similar to redefinition in a subclass. I would actually find it hard to find a unified way to explain both 'super's to someone, and I'm not sure why the same word is being reused. I guess 'wrapee' is a bit too bizarre :-) But I do wish it were something other than super, since the wrapped method is not 'above' the wrapper (the way a superclass's method is above the subclass's method). David -- David A. Black dblack / wobblini.net