# New Ticket Created by  Chris Dolan 
# Please include the string:  [perl #60350]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60350 >

If you "say $x" on an $x that is an instance of class Foo that lacks  
stringification via __get_string(), then you get a crash with the  
error "get_string() not implemented in class Foo".

I propose that Perl6Object get a fallback __get_string method that  
returns simply the class name and a unique identifier (maybe a  
pointer value).  While unaesthetic, that fallback would prevent the  
program from just crashing and (as a bonus) would reveal the class  
name.  This approach has precedent in Perl5, Java, and other languages.

Reply via email to