[Xotcl] Filters on classes

Schofield, Bryan (GE Transportation) Bryan.Schofield at trans.ge.com
Mon Nov 15 16:56:17 CET 2004


One other thought... have you tried explicitly namespace scoping your object... I know that there were some namespace issues with the early 1.3 series.

try:
 TestA ::a
 ::a x 1

> -----Original Message-----
> From: xotcl-bounces at alice.wu-wien.ac.at
> [mailto:xotcl-bounces at alice.wu-wien.ac.at]On Behalf Of
> MichaelL at frogware.com
> Sent: Monday, November 15, 2004 10:33 AM
> To: xotcl at alice.wu-wien.ac.at
> Subject: [Xotcl] Filters on classes
> 
> 
> I'm using XOTcl 1.3.1.
> 
> This code:
> 
>         Object instproc someFilter {args} {
>             puts "self class        = [self class]"
>             puts "self called class = [self calledclass]"
>             puts "self              = [self]"
>             puts "self calledproc   = [self calledproc]"
>             puts "args              = $args"
>             puts ""
>             next
>         }
> 
>         Class TestA -parameter {{x 0}}
>         TestA filter someFilter
> 
>         TestA a
>         a x
>         a x 10
> 
> produces this output:
> 
>         self class        = ::xotcl::Object
>         self called class =
>         self              = ::TestA
>         self calledproc   = a
>         args              =
> 
>         self class        = ::xotcl::Object
>         self called class = ::xotcl::Class
>         self              = ::TestA
>         self calledproc   = unknown
>         args              = a
> 
>         self class        = ::xotcl::Object
>         self called class = ::xotcl::Class
>         self              = ::TestA
>         self calledproc   = create
>         args              = a
> 
>         self class        = ::xotcl::Object
>         self called class = ::xotcl::Class
>         self              = ::TestA
>         self calledproc   = alloc
>         args              = a
> 
>         invalid command name "a"
> 
> Note that filtering on "TestA a" seems to prevent the 
> creation of an obj 
> named "a". Any ideas?
> 
> _______________________________________________
> Xotcl mailing list
> Xotcl at alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
> 



More information about the Xotcl mailing list