[Pharo-project] Issue 3665 in pharo: asStringOrText should invoke asString

pharo at googlecode.com pharo at googlecode.com
Sun Feb 6 12:10:57 CET 2011

Status: Accepted
Owner: stephane... at gmail.com
Labels: Milestone-1.3

New issue 3665 by stephane... at gmail.com: asStringOrText should invoke  

to be discussed

#asStringOrText should return the receiver #asString, not printString.   
This is the correct behavior to be able to render first-class objects in  
PluggableListMorphs without quotes around them.

=============== Diff against Kernel-ul.540 ===============

Item was changed:
  ----- Method: Object>>asStringOrText (in category 'converting') -----
        "Answer a string that represents the receiver."
+       ^ self asString!
-       ^ self printString !

More information about the Pharo-project mailing list