[Pharo-project] ZnUrl: Convenience method to add to path

Damien Cassou damien.cassou at gmail.com
Tue Jul 3 10:40:51 EDT 2012


On Tue, Jul 3, 2012 at 4:06 PM, Sean P. DeNigris <sean at clipperadams.com> wrote:
> / aString
>
>         ^ self copy addPathSegment: aString.

why do you copy here and not in the previous example?
I guess you should return #yourself, just to be sure in case
#addPathSegment: changes

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




More information about the Pharo-dev mailing list