... Message subject should have been "Mixin as a superclass rather than
being inherited"
_____
From: Oliver Sims [mailto:oliver.s...@simsassociates.co.uk]
Sent: 17 May 2013 16:46
To: 'Open Object Rexx Users'
Subject: Mixin as a subclass rather than being inherited
The following, which I thought would not work, does work:
c1 = .MyClass1~new; c1~doIt
c2 = .MyClass2~new; c2~doIt
::class MyClass1 inherit MixinA
::class MyClass2 subclass MixinA
::class MixinA mixinclass object;
::method doIt; say "MixinA caught it."
/* Command Prompt Output:
MixinA caught it.
MixinA caught it.
*/
Is this working to spec? There's no mention (that I can find) in the ooRexx
Reference about sublassing a mixin - as opposed to inheriting it.
I hope it is working to spec, 'cos I really do like it!
Thanks,
--
Oliver Sims
------------------------------------------------------------------------------
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