View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] Abstract method f args called

From: Catherine Letondal <letondal_at_pasteur.fr>
Date: Thu, 08 Feb 2001 15:13:44 +0100

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