[Xotcl] Bug: Empty arglist and body throws error

Schofield, Bryan (GE Transportation) Bryan.Schofield at trans.ge.com
Wed Oct 27 22:51:48 CEST 2004

Hullo -

I'm afraid I found a bug that will generate an "unable to dispatch" error if the argument list & body of an instproc are both empty. You will notice that as long as either contain something, it's ok. Notice the body of "Bar notpuke", it's just a single comment. See the code below:

Gustaf -- This is the build that I downloaded from you on October 18th at:

-- blah.tcl --
package require XOTcl 1.3

namespace import ::xotcl::*
Class Foo
Foo instproc puke {} {}

Class Bar
Bar instproc notpuke {} {#}                                                                                                                                                                   

Class Ack
Ack instproc notpuke {a} {}

Bar b
b notpuke

Ack a
a notpuke x

Foo f
f puke

-- End --
Produces the following error:
::f: unable to dispatch method 'puke'
    while executing
"f puke"
    (file "/homes/bschofie/blah.tcl" line 20)

> -----Original Message-----
> From: xotcl-bounces at alice.wu-wien.ac.at
> [mailto:xotcl-bounces at alice.wu-wien.ac.at]On Behalf Of Gustaf Neumann
> Sent: Friday, October 15, 2004 1:03 PM
> To: xotcl at alice.wu-wien.ac.at
> Subject: Re: [Xotcl] xotcllib?
> On Friday 15 October 2004 18:47, Schofield, Bryan \(GE 
> Transportation\) wrote:
> > Does xotcllib, or some other collection of XOTcl utility 
> packages exist?
> just the library that comes with the source in xotcl*/library
> -gustaf
> -- 
> Univ.Prof. Dr.Gustaf Neumann
> Abteilung für Wirtschaftsinformatik und Neue Medien
> Wirtschaftsuniversität Wien, Augasse 2-6, 1090 Wien
> _______________________________________________
> 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