[Xotcl] problem with filter & destroy

Kristoffer Lawson setok at fishpool.com
Wed Feb 28 02:39:31 CET 2001


(version: 0.83)

Class Foo

Foo instproc destroy {args} {
  puts "destroy args: $args"
  next
}

Foo instproc method {args} {
  puts "method args: $args"
  next
}

Foo instproc filterProc {args} {
  puts "filter args: $args"
  next
}

Foo filter filterProc

[~] ob method suk 
filter args: suk
method arg: suk

[~] ob destroy blah 
filter args: blah
destroy args:

Without the filter the arguments to destroy are sent as normal. So the
filter is having some effect on how destroy is handled. Also, I've
received the following error when playing around with this situation:

invalid command name "self"
    while executing "self"
    invoked from within "puts stderr "[self]: Error in instproc destroy
         $::errorCode $::errorInfo""
    invoked from within
"ob destroy data"

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





More information about the Xotcl mailing list