_m_delete() is to m_delete() as _indices() is to indices(). So _m_delete is the function that the object has to implement for m_delete to work on it. It doesn't matter whether it implements a function m_delete or not. Thus the missing function in the object is _m_delete. The object is passed as the first argument to m_delete. Therefore the error message in m_delete says that the object in the first argument lacks an _m_delete. It does that in a clear and concise way, imo.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-02-10 22:42: Subject: Re: Implicit vs. explicit type casting with Pike
On Mon, Feb 10, 2003 at 10:25:11PM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum scribbled:
while it states that it expected an object passed to _m_delete
No it doesn't.
Bad argument 1 to m_delete(). Expected object with _m_delete
What does it say then?
marek
/ Brevbäraren