Issue 7325 in pharo: Object misses #stringRepresentation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 7325 in pharo: Object misses #stringRepresentation

pharo
Status: New
Owner: ----
Labels: Milestone-1.4 Type-Bug

New issue 7325 by [hidden email]: Object misses #stringRepresentation
http://code.google.com/p/pharo/issues/detail?id=7325

String has a #stringRepresentation method that says:

"Answer a string that represents the receiver.  For most objects this is  
simply its printString, but for strings themselves, it's themselves, to  
avoid the superfluous extra pair of quotes.  6/12/96 sw"

But that's the only class implementing it.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7325 in pharo: Object misses #stringRepresentation

pharo

Comment #1 on issue 7325 by [hidden email]: Object misses  
#stringRepresentation
http://code.google.com/p/pharo/issues/detail?id=7325

I swear I've tried to remember how to use Pharo Inbox, but couldn't :(

Attachments:
        Kernel-MatiasGarciaIsaia.1050.mcz  738 KB
         
SLICE-Issue-7325-Object-misses-stringRepresentation-MatiasGarciaIsaia.1.mcz  
141 KB


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7325 in pharo: Object misses #stringRepresentation

pharo

Comment #2 on issue 7325 by [hidden email]: Object misses  
#stringRepresentation
http://code.google.com/p/pharo/issues/detail?id=7325

Let's think carefully about adding yet another method to Object.

There are way to many very similar methods on Object, [Arrayed|
Sequenceable]Collection and String.

There was a discussion about String's #printString, #asString, #storeString  
some time ago...
.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7325 in pharo: Object misses #stringRepresentation

pharo

Comment #3 on issue 7325 by [hidden email]: Object misses  
#stringRepresentation
http://code.google.com/p/pharo/issues/detail?id=7325

It has
   -> no senders
   -> just implemented in String to return self

I vote for deleting it.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7325 in pharo: Object misses #stringRepresentation

pharo

Comment #4 on issue 7325 by [hidden email]: Object misses  
#stringRepresentation
http://code.google.com/p/pharo/issues/detail?id=7325

I don't think I'm able to vote for any of the named messages, but I do  
think there **has to be** a method to do what #stringRepresentation's  
comment says.

I've just seen #asString, and does the trick, so maybe deleting  
#stringRepresentation is OK.

I think I've published the deletion in  
http://ss3.gemstone.com/ss/PharoInbox/SLICE-Issue-7325-Object-misses-stringRepresentation-MatiasGarciaIsaia.3.mcz


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker