Re: [Pharo-users] super super

2017-01-21 Thread Hilaire
Worst than that :) In theory I can refactor the super code and commit, but SmalltalkHub does not let me commit even I have RW access... So I have to knock at the Philippe's or Masashi's door so they can commit it for me. It's annoying to bother busy people. Anyway enough small talk ;) Le 21/01/201

Re: [Pharo-users] super super

2017-01-21 Thread Hilaire
yes, something like factoring out in its own method a chunk of code in super super method I want to access from my subclass. Le 21/01/2017 à 19:32, Sebastian Heidbrink via Pharo-users a écrit : > Now I am wondering what you guys are meaning by "hooks"? -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] super super

2017-01-21 Thread Sebastian Heidbrink via Pharo-users
--- Begin Message --- Hi Hilaire, I had this once, too. No time to refactor or rethink my subclass structure. Now I am wondering what you guys are meaning by "hooks"? Something like this? A ClassExtension? SuperSuperClass - methodIWantToReach - myExtendedMethod ^self methodIWan

Re: [Pharo-users] super super

2017-01-21 Thread Peter Uhnak
Out of curiosity, wouldn't it be better to temporarily duplicate the code in your class and talk with the upstream owner? (That would be my usual approach.) Peter On Sat, Jan 21, 2017 at 06:04:12PM +0100, Hilaire wrote: > Agree on the hook. However the super class are not mine. Not an ideal > s

Re: [Pharo-users] super super

2017-01-21 Thread Hilaire
Yep, it is the first situation I face where I need it in 10 years of Smalltalk/Pharo. Otherwise I will refactor super class package, may be I should Le 21/01/2017 à 11:19, stepharong a écrit : > pay attention and to not use it. It is evil to use that in plain domain > code. -- Dr. Geo http://drg

Re: [Pharo-users] super super

2017-01-21 Thread Hilaire
Agree on the hook. However the super class are not mine. Not an ideal situation Le 21/01/2017 à 11:19, stepharong a écrit : > No and I'm happy that this is like that. > I think that it means that you need to create special hooks in the super > superclass. -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] super super

2017-01-16 Thread Hilaire
Thanks Henrik Le 15/01/2017 à 22:33, Henrik Nergaard a écrit : > menu perform: #isMorph withArguments: #() inSuperclass: ProtoObject. "Error > #isMorph not implemented" -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] super super

2017-01-15 Thread Henrik Nergaard
#perform:withArugments:inSuperclass: | menu | menu := MenuMorph new. menu isMorph. "true" menu perform: #isMorph withArguments: #() inSuperclass: Morph. "true" menu perform: #isMorph withArguments: #() inSuperclass: Object."false" menu perform: #isMorph withArguments: #() inSuperclass: ProtoObjec

Re: [Pharo-users] super super

2017-01-15 Thread Brad
You should be able to call super super, as high up as you need to go. At least you can in VA Smalltalk. Brad Selfridge 913-269-2385 > On Jan 15, 2017, at 3:42 PM, Hilaire wrote: > > Hi, > > Is there a way from an instance to access a method situated 2 layers up > in the class hierarchy? > >