On Mon, Dec 1, 2008 at 9:30 PM, Tracy Harms <[EMAIL PROTECTED]> wrote:
> Perhaps the closure code you provided would serve as a first step
> toward a module that would automate multiple inheritance in J using
> that semantic model.

J already supports multiple inheritance, using a
mechanism analogous to the one described in
your quote.

For example a class or object with
   coinsert 'class1 class2 class3'
inherits from class1 and all its parents,
from class2 and all its parents, from
class3 and all its parents and from z,
in that order (the order matters for names
that have multiple potential definitions).

If you use coinsert multiple times, the later
uses take precedence.

But I guess I don't see that closures could
add anything to this.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to