[Xotcl] NX unknown method

Victor Mayevski vitick at gmail.com
Fri Feb 18 02:05:47 CET 2011


Hello Gustaff,

I am having a problem with unknown in NX, where, if I define my own
"unknown" method, in which I just check for presence of some argument,
if that argument does not exist, I pass processing further on via
[next] to the built-in "unknown" processor, well, at least that's what
I would like to do. What I find is that there is no further processing
done, [next] does not do anything, the unknown method just returns
silently. Am I doing something wrong?

##########################################
Class create C
C method unknown args {
if {$args eq "test"} {
puts "found test";
return
};
next;
}

C create obj;
obj test
> found test

obj xyz
> #nothing, no error
############################################
Thanks,

Victor


More information about the Xotcl mailing list