[Xotcl] info method behaviour

Kristoffer Lawson setok at fishpool.com
Sat Aug 11 00:00:59 CEST 2001


Situation:

I create a class "C" with instproc "foo".
An object is created from C called "ob".

Problem:

The commands "ob info procs", "ob info args" and "ob info body" do not
work as I would expect them to. In particular, there doesn't seem to be a
way of finding out the body and arguments for the instproc "foo" from the
object. I could do this by asking the class, but I specifically would
like a uniform way to do this, without caring whether the methods are
inherited or not. Is this intended? Why?

% package require XOTcl
0.85

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |  www.fishpool.fi|.com
         +-> |    setok at fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/




More information about the Xotcl mailing list