Re: AW: Calling code in parent's parent class
Same. Code smell. On Tue, Dec 3, 2019 at 10:19 AM MB Software Solutions, LLC < mbsoftwaresoluti...@mbsoftwaresolutions.com> wrote: > I would agree that it seems kludgey. Worked for a "genius" last gig and > he used it and it was amazing to see it in action operate easily but my > spidey sense said "yeah, no...I don't like it." > > On 12/3/2019 11:10 AM, Jürgen Wondzinski wrote: > > Sounds a little bit like "bad design", but if life demands such > > constructs > > > > You can always get the code from the upmost level by using the > "QuatroDot" > > operator :: > > like class::MyMethod() > > > > If you would need one in between, then you need to do some clever IF > > branching in the beginning of each level's code by providing a parameter > > when calling the method: > > > > PROC MyMethod > > LPARAMETER lSkipIt > > IF lSkipIt > > RETURN DODEFAULT() > > ENDIF > > && regular code goes here > > > > > > wOOdy > > > > > > -Ursprüngliche Nachricht- > > Von: ProFox Im Auftrag von Paul Newton > > Gesendet: Dienstag, 3. Dezember 2019 17:00 > > An: 'profox@leafe.com' > > Betreff: Calling code in parent's parent class > > > > Hi all > > Let's say that I have the following situation: > > > > GreatGrandParent -> GrandParent -> Parent -> Class > > > > In Class I want to bypass the code in Parent but call the code in either > > GrandParent OR GreatGrandParent. > > > > Is this possible and, if so, how? Many thanks > > > > Paul Newton > > > > > > > > --- StripMime Report -- processed MIME parts --- multipart/alternative > >text/plain (text body -- kept) > >text/html > > --- > > [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/CAAwxvUmn2urq_Qi0Na=u9fj2vdrc6g2vkyfju_6ej_fcask...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Re: AW: Calling code in parent's parent class
I would agree that it seems kludgey. Worked for a "genius" last gig and he used it and it was amazing to see it in action operate easily but my spidey sense said "yeah, no...I don't like it." On 12/3/2019 11:10 AM, Jürgen Wondzinski wrote: Sounds a little bit like "bad design", but if life demands such constructs You can always get the code from the upmost level by using the "QuatroDot" operator :: like class::MyMethod() If you would need one in between, then you need to do some clever IF branching in the beginning of each level's code by providing a parameter when calling the method: PROC MyMethod LPARAMETER lSkipIt IF lSkipIt RETURN DODEFAULT() ENDIF && regular code goes here wOOdy -Ursprüngliche Nachricht- Von: ProFox Im Auftrag von Paul Newton Gesendet: Dienstag, 3. Dezember 2019 17:00 An: 'profox@leafe.com' Betreff: Calling code in parent's parent class Hi all Let's say that I have the following situation: GreatGrandParent -> GrandParent -> Parent -> Class In Class I want to bypass the code in Parent but call the code in either GrandParent OR GreatGrandParent. Is this possible and, if so, how? Many thanks Paul Newton --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/910cc082-f32f-b4f9-f2e6-07d9c7272...@mbsoftwaresolutions.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
AW: Calling code in parent's parent class
Sounds a little bit like "bad design", but if life demands such constructs You can always get the code from the upmost level by using the "QuatroDot" operator :: like class::MyMethod() If you would need one in between, then you need to do some clever IF branching in the beginning of each level's code by providing a parameter when calling the method: PROC MyMethod LPARAMETER lSkipIt IF lSkipIt RETURN DODEFAULT() ENDIF && regular code goes here wOOdy -Ursprüngliche Nachricht- Von: ProFox Im Auftrag von Paul Newton Gesendet: Dienstag, 3. Dezember 2019 17:00 An: 'profox@leafe.com' Betreff: Calling code in parent's parent class Hi all Let's say that I have the following situation: GreatGrandParent -> GrandParent -> Parent -> Class In Class I want to bypass the code in Parent but call the code in either GrandParent OR GreatGrandParent. Is this possible and, if so, how? Many thanks Paul Newton --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/00b901d5a9f4$2c73f950$855bebf0$@wondzinski.de ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.