[Xotcl] Abstract method f args called

Catherine Letondal letondal at pasteur.fr
Thu Feb 8 15:13:44 CET 2001


Hi,

Say I have the following class hierarchy:

Class C0
C0 instproc f args {
    puts "(C0) I am [self] class [[self] info class] in method [self proc]"
}

Class C1 -superclass C0
C1 abstract instproc f args

Class C2 -superclass C1
C2 instproc f args {
    puts "(C1) I am [self] class [[self] info class] in method [self proc]"
    next
}

So, the method f is:
 - defined at the top of the hierarchy
 - abstract in the middle of the hierarchy.
 - redefined at the bottom

When I run:
C2 c2
c2 f

I get:
(C1) I am ::c2 class ::C2 in method f
Abstract method f args called

and I cannot reach the top method? 

Is this on purpose?

-- 
Catherine Letondal -- Pasteur Institute Computing Center




More information about the Xotcl mailing list