<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Seaside] [VW] 2.8a1.390 now available on public store</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hehe, ever try writing code on a blackberry? :)<BR>
<BR>
Up in objects encodeon fetch displaystring from object, compare == to object, if they are same you have guaranteed recursion and might as well try asstring and give up later... Recursion is pain in VisualWorks because of lack of stack overflow, but michaels package helps a bit. Hard to elaborate without looking at the browser, sorry!<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from an iPhone... Not!)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Sat Jul 07 09:16:12 2007<BR>
Subject: Re: [Seaside] [VW] 2.8a1.390 now available on public store<BR>
<BR>
2007/7/7, Boris Popov &lt;boris@deepcovelabs.com&gt;:<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; I would suggest adding encodeon to text which would solve the problem when<BR>
&gt; displaystring returns it instead of actual string.<BR>
<BR>
That sounds good to me, and to Smybol as well while we're at it. That<BR>
also simplifyies some Seaside code and makes it better understandable.<BR>
<BR>
&gt; But it might not be a bad<BR>
&gt; idea to add safety to object's encodeon to make sure displaystring didn't<BR>
&gt; return self which go into recursion. Nasty, I know.<BR>
<BR>
What would such code look like?<BR>
<BR>
Philippe<BR>
<BR>
&gt;&nbsp; Cheers!<BR>
&gt;<BR>
&gt;&nbsp; -Boris<BR>
&gt;&nbsp; (Sent from an iPhone... Not!)<BR>
&gt;<BR>
&gt;&nbsp; ----- Original Message -----<BR>
&gt;&nbsp; From: seaside-bounces@lists.squeakfoundation.org<BR>
&gt; &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
&gt;&nbsp; To: Seaside - general discussion<BR>
&gt; &lt;seaside@lists.squeakfoundation.org&gt;<BR>
&gt;&nbsp; Sent: Sat Jul 07 03:29:14 2007<BR>
&gt;&nbsp; Subject: Re: [Seaside] [VW] 2.8a1.390 now available on public store<BR>
&gt;<BR>
&gt;&nbsp; 2007/7/7, Lukas Renggli &lt;renggli@gmail.com&gt;:<BR>
&gt;&nbsp; &gt; &gt; Does #displayString in Squeak always return an instance of String? It<BR>
&gt; doesn't here...<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; Squeak doesn't have #displayString, we use this just to keep<BR>
&gt;&nbsp; &gt; portability with VisualWorks. #displayString defaults to #asString in<BR>
&gt;&nbsp; &gt; Squeak. Isn't this supposed to return a string as its name says?<BR>
&gt;<BR>
&gt;&nbsp; The reason we went through the whole #displayString pain (implementing<BR>
&gt;&nbsp; it in Squeak, changing every sender) is because we were told that we<BR>
&gt;&nbsp; could not use #asString in VW and that #displayString was the method<BR>
&gt;&nbsp; to use that would always return a String for displaying. Apparently<BR>
&gt;&nbsp; this is not the case. I'd be interested where this happens. If the<BR>
&gt;&nbsp; #displayString implementors in VW can't be fixed and are few, I'd<BR>
&gt;&nbsp; prefer it if we #encodeOn: would be overridden in these cases. Note<BR>
&gt;&nbsp; that we already have two #asString suckers. WARenderingContext &gt;&gt;<BR>
&gt;&nbsp; #nextKey and WATagBrush &gt;&gt; #id. I'd be happy if we could get rid of<BR>
&gt;&nbsp; those by implementing #encodeOn: in Symbol in the VW port.<BR>
&gt;<BR>
&gt;&nbsp; Philippe<BR>
&gt;<BR>
&gt;&nbsp; &gt; Lukas<BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; &gt; --<BR>
&gt;&nbsp; &gt; Lukas Renggli<BR>
&gt;&nbsp; &gt; <A HREF="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</A><BR>
&gt;&nbsp; &gt; _______________________________________________<BR>
&gt;&nbsp; &gt; Seaside mailing list<BR>
&gt;&nbsp; &gt; Seaside@lists.squeakfoundation.org<BR>
&gt;&nbsp; &gt;<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;&nbsp; &gt;<BR>
&gt;&nbsp; _______________________________________________<BR>
&gt;&nbsp; Seaside mailing list<BR>
&gt;&nbsp; Seaside@lists.squeakfoundation.org<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Seaside mailing list<BR>
&gt; Seaside@lists.squeakfoundation.org<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
&gt;<BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>