[1268] in Coldmud discussion meeting
Re: [COLD] A bug??
daemon@ATHENA.MIT.EDU (Wed Apr 2 11:29:48 1997
)
Date: Wed, 2 Apr 1997 09:23:27 -0700 (MST)
From: Brandon Gillespie <brandon@cold.org>
To: Jeff Kesselman <jeffk@tenetwork.com>
cc: coldstuff@cold.org
In-Reply-To: <3.0.32.19970401004155.0076b5ac@mail.tenetwork.com>
On Tue, 1 Apr 1997, Jeff Kesselman wrote:
> At 12:32 AM 4/1/97 -0800, you wrote:
> >On Tue, 1 Apr 1997, Jeff Kesselman wrote:
> >
> >> Im doing a call of the form
> >> out = (fooobj).myfunc();
> >> Where foobj is a variable containing an obj reference
> >> and myfunc is a method on the referenced obejct tha ttakes no arguments.
> >>
> >> im gettign a "called with one argument, requires none" error
> >
> >Are you 100% sure you aren't calling the method on a frob?
>
> Good thought but yes Im sure. It tells me oits callign it on $integer...
There is no bug. The 'fooobj' variable is not set--it is defaulting to
zero, so its really doing:
(0).myfunc()
which is then mapped to:
$integer.myfunc(0)
check 'fooobj' and make sure the current instance you are using is
initialized correctly.
-Brandon