Status: Accepted
Owner: cdrick65
Labels: Type-RequestForEnhancement

New issue 3401 by cdrick65: Comparison of Urls is not possible yet
http://code.google.com/p/pharo/issues/detail?id=3401

Pharo image: 1.1 dev
Pharo core version: 11414
Virtual machine used: cog osx

not possible to compare url's
'http://www.pharo-project.org' asUrl = 'http://www.pharo-project.org' asUrl. => false
(i know asUrl is deprecated but... shorter ;) )

I actually copy/pasted = and hash from URI (common superclass ?  traits ?)
I also made a test for urls.







if yes, is the following proposition enough ?
or should it be more precise according to each subclass ?

See you



'http://www.pharo-project.org' asUrl = 'http://www.pharo-project.org' asUrl. => false

What about having:

Url>> = anotherUrl

    ^self asText = anotherUrl asText


Paste or attach stack trace if applicable (look at the file PharoDebug.log
located in the same directory as your image):


Attachments:
        Url-comparing.st  414 bytes
        UrlTest-testUrlComparison.st  733 bytes


Reply via email to