Issue 5499 in pharo: String>>#copyReplaceAll:with:asTokens: should be moved to string

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

Issue 5499 in pharo: String>>#copyReplaceAll:with:asTokens: should be moved to string

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Cleanup

New issue 5499 by [hidden email]:  
String>>#copyReplaceAll:with:asTokens:   should be moved to string
http://code.google.com/p/pharo/issues/detail?id=5499

It's string specific behavior...


_______________________________________________
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 5499 in pharo: String>>#copyReplaceAll:with:asTokens: should be moved to string

pharo

Comment #1 on issue 5499 by [hidden email]:  
String>>#copyReplaceAll:with:asTokens:   should be moved to string
http://code.google.com/p/pharo/issues/detail?id=5499

Then, maybe the validation can be removed...


        (ifTokens and: [(self isString) not])
                ifTrue: [(self isKindOf: Text) ifFalse: [
                        self error: 'Token replacement only valid for Strings']].

Maybe this method can be moved to a Trait to Text can use it too.


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