[DGD] Does object_name() not like mixed or...?

Tavis Elliott tavise at nwlink.com
Tue Jan 13 23:02:56 CET 2004


On Tue, 13 Jan 2004 21:55:27 +0000, Robert Forshaw 
<iouswuoibev at hotmail.com> wrote:

> Here's my function (it masks object_name()):
>
> static nomask string object_name(mixed obj, varargs int master, int shed)
> {
>     if(!obj) return nil;
>
>     if(IS_OBJECT(obj))
>           obj = ::object_name(obj);
>     else
>       {
>           obj = ::find_object(obj);
>           obj = ::object_name(obj);
>       }
>

... snip ...

Consider what happens if find_object() returns nil ...

-Tavis
-- 
Busier than a one-legged Riverdancer
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list