John Porter <[EMAIL PROTECTED]> writes:

> Michael Fowler wrote:
> > 
> > I think a stringified reference is worth seeing, moreso than a simple undef,
> > for debugging purposes if nothing else.
> 
> I personally would like to have the stringification of refs be a
> symmetric operation, i.e. such a string should dwim in a ref context:
> 
>       $r = bless {}, 'Foo';
>       $s = "$r";
>       ref($s); # True.
>       $s->bar; # call method of Foo.
> 
> I guess that means the deref operator would have be implicitly overloaded
> for strings...

Down that road lies madness.

-- 
Piers

Reply via email to