On Fri, 16 Jan 2004, Sterling Hughes wrote:

> > Adam Maccabee Trachtenberg wrote:
> > >Anyone else care to chime in here? If we're really moving to RC1, I
> >
> > So to summarize that'd be
> > echo, print, (string), strval() and settype()
> > using __toString(), right? Sounds +1 to me.
> >
>
> settype() is a tricky one - i think it should fail for objects, as it
> could cause destruction of the underlying object, as we don't have
> magic (in the perl internals meaning of the world).

Ah right. settype() modifies the original object instead of returning
a cast version of the object. Yea, settype() should probably fail for
objects.

So, it's:

echo, print, (string), strval(), "$obj", and printf("%s", $obj) (plus
printf() variants).

That's my complete list. AFAIK, everything but strval() works right
now. We just need to fix that function.

Also, I don't know why exit() would call __toString(). That doesn't
make sense to me.

-adam

-- 
[EMAIL PROTECTED]
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to