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

[Xotcl] Problem with info args

From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Sat, 17 Feb 2001 04:18:27 +0200 (EET)

Code:

Class Foo

Foo instproc init {} {
  puts [[self] info args myMethod]
}

Foo instproc myMethod {anArgument} {}
Foo ob
==> expected a tcl method name but got myMethod


This works as expected if I simply create an Object as follows:

Object foo
foo proc myMethod {anArgument} {}
foo info args myMethod
==> anArgument

Is this behaviour to be expected, and if so, why?

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