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

RE: [Xotcl] Bug: Empty arglist and body throws error

From: Schofield, Bryan \(GE Transportation\) <"Schofield,>
Date: Thu, 28 Oct 2004 09:03:50 -0400

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
>
>