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=5499Then, 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