[Xotcl] filters and next

Andriy Tkachuk ant at imt.com.ua
Wed Apr 17 17:46:34 CEST 2002


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.




More information about the Xotcl mailing list