I found another problem with non-position args... an argument of "--" can cause a core dump. Consider the following.
Object o o proc foo {{-a A}} {b} { puts "$a $b" } o foo "B" #--> "A B"
o foo "-" #--> "A -"
o foo "---" #--> "A ---"
o foo "--" #--> core dump.
-----Original Message----- From: Schofield, Bryan (GE Transportation) Sent: Wednesday, November 10, 2004 9:17 AM To: xotcl@alice.wu-wien.ac.at Subject: Bug: Non-positional args with no value cause core dump
Gustaf/Uwe -
I found a little bug in 1.3.3 that I downloaded on October 15th from=20 http://media.wu-wien.ac.at/download/xotcl-1.3.3.tar.gz
The following causes a core dump on my Solaris workstation:
Object o o proc foo {{-foo 1}} {} { puts "foo: $foo" }
o foo #--> "foo: 1"
o foo -foo 0 #--> "foo: 0"
o foo -foo #--> BOOM!
Just thought I'd pass that on. Regards -- bryan