What about www.cnn.com asUrl = ( 'cnn.com' asUrl )?
I'm not sure what the right answer to that is - sorry. ________________________________________ From: [email protected] [[email protected]] On Behalf Of Cédrick Béler [[email protected]] Sent: Friday, December 10, 2010 10:41 AM To: [email protected] Subject: [Pharo-project] Url comparison Hi, I'd like to compare url's but it doesn't seem to work (as I expect - Pharo 1.1) ex: 'http://www.pharo-project.org' asUrl = 'http://www.pharo-project.org' asUrl. => false What about having: Url>> = anotherUrl ^self asText = anotherUrl asText Do we need to redefine hash too ? TIA Cédrick
