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

[Xotcl] NX unknown method

From: Victor Mayevski <vitick_at_gmail.com>
Date: Thu, 17 Feb 2011 17:05:47 -0800

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