[Xotcl] Bug: Empty arglist and body throws error

Schofield, Bryan (GE Transportation) Bryan.Schofield at trans.ge.com
Thu Oct 28 15:03:50 CEST 2004


I think the ability to delete an instproc is handy, I just didn't realize what was going on. Thanks for the quick response.

--bryan



> -----Original Message-----
> From: Gustaf Neumann [mailto:neumann at wu-wien.ac.at]
> Sent: Wednesday, October 27, 2004 5:54 PM
> To: Schofield, Bryan (GE Transportation); xotcl at alice.wu-wien.ac.at
> Subject: Re: [Xotcl] Bug: Empty arglist and body throws error
> 
> 
> Dear Bryan,
> 
> > 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:
> 
> we have a behavior in xotcl that we inherited  from otcl: 
> when instproc is
> invoked
> with an empty argument list and an empty body, this instproc 
> is deleted.
> Most probably, we should do the following:
>   a) produce an error, when someone tries to delete a non.existing
> proc/instproc
>   b) document this behavior somewhere more visible.
> 
> -gustaf
> 
> 



More information about the Xotcl mailing list