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

[Xotcl] filters and next

From: Andriy Tkachuk <ant_at_imt.com.ua>
Date: Wed, 17 Apr 2002 18:46:34 +0300 (EEST)

Hello! :)

How it must works, when in pre/post part of filter
object calls his procs that calls next?
Situation like here:

Class A
A instproc msg msg {
        puts "puts: $msg"
}

Class B -superclass A
B instproc msg msg {
        next
}

B instproc my_filter args {
        my msg "before next in filter"
        next
}

B b

b filter my_filter
b msg bb
puts: before next in filter

that's all!: there is no "puts: bb".

if filter like this:

B instproc my_filter args {
        my msg "before next in filter"
        next
        my msg "after next in filter"
}

then:
"too many nested calls to Tcl_EvalObj"

Thank you.