Hi, I just bumped into this. Probably this is intended somehow, but it
does seem weird enough to ask … (Object >> #hash) asString class returns 'Text'. Cheers, Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41 076 235 8683 _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
>>>>> "Niko" == Niko Schwarz <[hidden email]> writes:
Niko> Hi, I just bumped into this. Probably this is intended somehow, but it Niko> does seem weird enough to ask … Niko> (Object >> #hash) asString class Niko> returns 'Text'. It has to be, to hold styled text, right? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On 1 April 2010 01:52, Randal L. Schwartz <[hidden email]> wrote:
>>>>>> "Niko" == Niko Schwarz <[hidden email]> writes: > > Niko> Hi, I just bumped into this. Probably this is intended somehow, but it > Niko> does seem weird enough to ask … > > Niko> (Object >> #hash) asString class > > Niko> returns 'Text'. > > It has to be, to hold styled text, right? > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- Best regards, Igor Stasenko AKA sig. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Apr 1, 2010, at 4:39 AM, Igor Stasenko wrote: > On 1 April 2010 01:52, Randal L. Schwartz <[hidden email]> wrote: >>>>>>> "Niko" == Niko Schwarz <[hidden email]> writes: >> >> Niko> Hi, I just bumped into this. Probably this is intended somehow, but it >> Niko> does seem weird enough to ask … >> >> Niko> (Object >> #hash) asString class >> >> Niko> returns 'Text'. >> >> It has to be, to hold styled text, right? >> > as to me, asking to string, should return string, not text. > Yes. And if a tool wants bold, it calls asText. Another example of the "principle of the least surprise". That's the reason why, for example, "Browser open" opens a Browser, not a Workspace Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by niko.schwarz
On Apr 1, 2010, at 12:00 AM, Niko Schwarz wrote: > Hi, I just bumped into this. Probably this is intended somehow, but it > does seem weird enough to ask … > > (Object >> #hash) asString class > > returns 'Text'. > > I think this is historical. Methods *used* to return Strings, and the Browser highlighted the first line. Than, when the possibility to have "Rich text" kind of methods (with bold, colors, links) added in Squeak, this was "implemented" by the "do the smallest change possible, we will rewrite everything anyway" strategy. Never clean up! Never Refactor! Of course, like always, the "big rewrite from scratch" never happened. To the contrary, all the time more and more "do the smallest change possible" changes where introduced on top, up to the point that the whole system was just *bad*. There is something to be learned from this, I guess. Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On 4/1/2010 12:12 AM, Marcus Denker wrote:
> > On Apr 1, 2010, at 12:00 AM, Niko Schwarz wrote: > >> Hi, I just bumped into this. Probably this is intended somehow, but it >> does seem weird enough to ask … >> >> (Object>> #hash) asString class >> >> returns 'Text'. >> >> > > I think this is historical. Methods *used* to return Strings, and the Browser highlighted the first line. > > Than, when the possibility to have "Rich text" kind of methods (with bold, colors, links) added in Squeak, > this was "implemented" by the "do the smallest change possible, we will rewrite everything anyway" strategy. > > Never clean up! Never Refactor! Wow, Marcus. Your hostility towards Squeak is seriously amazing. Even more so since CompiledMethod>>asString DOES NOT EXIST in Squeak. It's a Pharo method. Of course, it's Squeak's fault that in Pharo, and Pharo only, CompiledMethod>>asString returns a text. > Of course, like always, the "big rewrite from scratch" never happened. To the contrary, all the time more and > more "do the smallest change possible" changes where introduced on top, up to the point that the whole system > was just *bad*. So what does that mean given that the method has a stamp of 'stephane.ducasse 8/9/2009 12:05'? Cheers, - Andreas _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Apr 1, 2010, at 9:43 AM, Andreas Raab wrote: > On 4/1/2010 12:12 AM, Marcus Denker wrote: >> >> On Apr 1, 2010, at 12:00 AM, Niko Schwarz wrote: >> >>> Hi, I just bumped into this. Probably this is intended somehow, but it >>> does seem weird enough to ask … >>> >>> (Object>> #hash) asString class >>> >>> returns 'Text'. >>> >>> >> >> I think this is historical. Methods *used* to return Strings, and the Browser highlighted the first line. >> >> Than, when the possibility to have "Rich text" kind of methods (with bold, colors, links) added in Squeak, >> this was "implemented" by the "do the smallest change possible, we will rewrite everything anyway" strategy. >> >> Never clean up! Never Refactor! > > Wow, Marcus. Your hostility towards Squeak is seriously amazing. It's not hostility. Not at all. It's my *love* for Squeak that was/is the problem. I could just not do nothing, *because* I loved it so much... my mistake. > Even more so since CompiledMethod>>asString DOES NOT EXIST in Squeak. So then I was wrong with this analysis... but on the big picture, it is true. And you know it. Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Andreas.Raab
Hi andreas
You could not resist....... and you got trapped to my eyes :). http://images2.fanpop.com/images/photos/2800000/Wolf-Eating-wolves-2812984-400-299.jpg Stef PS: Marcus you are a bad guy, bad bad bad :) "Oh le vilain" (kid voice) >> >>> Hi, I just bumped into this. Probably this is intended somehow, but it >>> does seem weird enough to ask … >>> >>> (Object>> #hash) asString class >>> >>> returns 'Text'. >>> >>> >> >> I think this is historical. Methods *used* to return Strings, and the Browser highlighted the first line. >> >> Than, when the possibility to have "Rich text" kind of methods (with bold, colors, links) added in Squeak, >> this was "implemented" by the "do the smallest change possible, we will rewrite everything anyway" strategy. >> >> Never clean up! Never Refactor! > > Wow, Marcus. Your hostility towards Squeak is seriously amazing. Even more so since CompiledMethod>>asString DOES NOT EXIST in Squeak. It's a Pharo method. Of course, it's Squeak's fault that in Pharo, and Pharo only, CompiledMethod>>asString returns a text. > >> Of course, like always, the "big rewrite from scratch" never happened. To the contrary, all the time more and >> more "do the smallest change possible" changes where introduced on top, up to the point that the whole system >> was just *bad*. > > So what does that mean given that the method has a stamp of 'stephane.ducasse 8/9/2009 12:05'? > > Cheers, > - Andreas > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Marcus Denker-4
+1
And we know it all! >>>> > It's not hostility. Not at all. It's my *love* for Squeak that was/is the problem. I could just not do nothing, *because* > I loved it so much... my mistake. > >> Even more so since CompiledMethod>>asString DOES NOT EXIST in Squeak. > > So then I was wrong with this analysis... but on the big picture, it is true. And you know it. > > Marcus > > -- > Marcus Denker -- http://www.marcusdenker.de > INRIA Lille -- Nord Europe. Team RMoD. > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Stéphane Ducasse
On Apr 1, 2010, at 10:11 AM, Stéphane Ducasse wrote: > Hi andreas > > You could not resist....... > > and you got trapped to my eyes :). > > http://images2.fanpop.com/images/photos/2800000/Wolf-Eating-wolves-2812984-400-299.jpg > > I was more thinking about this: The "etoy hater Brunnen" in Bern :-) Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project DSC_0216.jpeg (37K) Download Attachment |
In reply to this post by Marcus Denker-4
More seriously it would be nice to have a solution.
After may be string and text can share a common interface and the current situation is kind of ok. Does anybody have a larger view on the problem and possible solution? Stef _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Apr 1, 2010, at 10:18 AM, Stéphane Ducasse wrote: > More seriously it would be nice to have a solution. > After may be string and text can share a common interface and the current situation is kind of ok. > Does anybody have a larger view on the problem and possible solution? I think this was all fixed already in 1.1... (Object>>#halt) asString class --> ByteString. There is no asText. but #getSource return a Text (for formatted methods, of course) (Object>>#halt) getSource class So not too bad. Marcus -- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Marcus Denker-4
> The "etoy hater Brunnen" in Bern :-)
> > Marcus lol I always found this fountain amazing, nearly %2FCompiledMethod-asString-is-a-text-tp1747450p1747815.html&title\x3DRe%3A+CompiledMethod+asString+is+a+text\" title\x3D\"Stumble Upon\" target\x3D\"_blank\" ignore\x3D\"y\"\x3E \x3Cimg src\x3D\"/images/social/stumbleupon.png\" style\x3D\"width:16px;height:16px;margin-top:.2em;border:none;\"/\x3E \x3C/a\x3E \x3Ca href\x3D\"http://www.linkedin.com/shareArticle?mini\x3Dtrue&url\x3Dhttps%3A%2F%2Fforum.world.st%2FCompiledMethod-asString-is-a-text-tp1747450p1747815.html&title\x3Dhttps%3A%2F%2Fforum.world.st%2FCompiledMethod-asString-is-a-text-tp1747450p1747815.html&source\x3DSmalltalk\" title\x3D\"LinkedIn\" target\x3D\"_blank\" ignore\x3D\"y\"\x3E \x3Cimg src\x3D\"/images/social/linkedin.png\" style\x3D\"width:16px;height:16px;margin-top:.2em;border:none;\"/\x3E \x3C/a\x3E \x3Ca href\x3D\"http://digg.com/submit?phase\x3D2&url\x3Dhttps%3A%2F%2Fforum.world.st%2FCompiledMethod-asString-is-a-text-tp1747450p1747815.html&title\x3DRe%3A+CompiledMethod+asString+is+a+text\" title\x3D\"Digg\" target\x3D\"_blank\" ignore\x3D\"y\"\x3E \x3Cimg src\x3D\"/images/social/digg.png\" style\x3D\"width:16px;height:16px;margin-top:.2em;border:none;\"/\x3E \x3C/a\x3E','white-space:nowrap'); dropdown.build('dd_postdropdown1747815'); dropdown.loadOnClick('/template/NamlServlet.jtp?macro=post_dropdown_later&node=1747815&_=' + Math.floor(Math.random()*999999)); Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
Re: CompiledMethod asString is a text
«
Return to Pharo Smalltalk Developers
|
1 view|%1 views
|