[Pharo-project] Strange behavior

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Mar 11 13:03:20 EDT 2012


Who is inserting those 'asString'?
Well, I suspect it is #testObjects:strings: and it just wear initials sd ;)

Nicolas

Le 11 mars 2012 17:29, Andreas Wacknitz <a.wacknitz at gmx.de> a écrit :

>
> Am 11.03.2012 um 16:38 schrieb Stéphane Ducasse:
>
> >
> >
> > 'abc' replaceAll: $a asString  with: $z asString.
> >       'abc'
> >
> > | s |
> > s := 'abc'.
> > s replaceAll: $a asString  with: $z asString.
> > s
> >
> >       'abc'
> >
> > while the finder is telling me
> >
> >
> > 'abc' replaceAll: $a asString  with: $z asString.
> >       'zbc'
> >
> > quite confusing…
> >
> > stef
> My 1.4 image does not contain replaceAll:with:, but only
> copyReplaceAll:with:.
> And that works as expected. (Aren't Strings immutable nowadays?).
>
> Regards,
> Andreas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120311/a8aac15b/attachment-0001.html>


More information about the Pharo-dev mailing list