FORWARD CLASS(SUPER) will forward the method using the instance method
dictionary for the immediate superclass of the issuing method.  If you
issued that from either MixinA or MixinB, this would result in an error,
since Class2 (the immediate super class of both mixins) does not implement
a doIt method.  Forward does not need to go directly up the inheritance
chain, however.  I can also step over to another part of the tree.  For
example, you could use

FORWARD CLASS(.MixinB)

in the doIt method of MixinA go get both methods invoked.

Rick


On Mon, May 13, 2013 at 2:50 PM, Mark Miesfeld <miesf...@gmail.com> wrote:

> On Mon, May 13, 2013 at 11:37 AM, Mark Miesfeld <miesf...@gmail.com>wrote:
>
>> ::class 'One'
>> ::method myMethod
>> ::method myOtherMethod
>>
>> ::class 'Two' inherit One
>> ::method myMethod
>> ::method someOtherMethod
>>
>> obj = .Two~new
>> obj~myMethod
>>
>> obj~myMethod is going to invoke the method in class Two.  It is not going
>> to invoke both methods.  In order to invoke myMethod() in class Two unless
>> you forward the message to it.
>>
>
> Well that last is not clearly written.  It should be:
>
> obj~myMethod is going to invoke the method in class Two.  It is not going
> to invoke both methods.  In order to invoke myMethod() in class One you
> would need to forward the message to class One.
>
> --
> Mark Miesfeld
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to