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
- Re: RFC 48 (v2) Objects should have builtin strin... John Porter
- Re: RFC 48 (v2) Objects should have builtin s... Jonathan Scott Duff
- Re: RFC 48 (v2) Objects should have built... John Porter
- Re: RFC 48 (v2) Objects should have builtin stringifyi... Nathan Wiger
- Re: RFC 48 (v2) Objects should have builtin strin... Dan Sugalski
- Re: RFC 48 (v2) Objects should have builtin strin... Michael Fowler
- Re: RFC 48 (v2) Objects should have builtin s... John Porter
- Re: RFC 48 (v2) Objects should have built... Dan Sugalski
- Re: RFC 48 (v2) Objects should have built... Hildo Biersma
- Re: RFC 48 (v2) Objects should have b... John Porter
- Re: RFC 48 (v2) Objects should have built... Piers Cawley
- Re: RFC 48 (v2) Objects should have builtin s... Nathan Wiger
- Re: RFC 48 (v2) Objects should have built... Michael Fowler