On Sat, 22 Jul 2006, Mattias Gaertner wrote:

> On Sat, 22 Jul 2006 13:20:45 +0200 (CEST)
> Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> 
> > 
> > 
> > On Sat, 22 Jul 2006, Mattias Gaertner wrote:
> > 
> > > On Sat, 22 Jul 2006 12:35:58 +0200 (CEST)
> > > Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > > 
> > > > 
> > > > 
> > > > On Sat, 22 Jul 2006, Mattias Gaertner wrote:
> > > > 
> > > > >   // Delphi still cannot handle wide strings properly while
> streaming
> > > > >   Filer.DefineProperty('WideDefaultText', @ReadText, @WriteText,
> > > > > FDefaultText <> 'Node');
> > > > >  
> > > > > The FCL TWriter has a problem too: It refuses to write empty
> > > widestrings.
> > > > 
> > > > This is not a 'problem' but a design decision: empty strings are never
> > > written 
> > > > to stream. Delphi also does not write empty strings to stream; it's to
> > > save space.
> > > 
> > > That was maybe the idea. And it works well as default behaviour. 
> > > But when you define a stored function, you want to fine tune, what is
> saved
> > > and what not.
> > 
> > The empty string is only not written if there is no 'stored' specifier, I
> think.
> > 
> > > This 'design decision', if it was that, limits the possibilities without
> > > gain and is inconsistent to other types.
> > 
> > No, because zero ordinals are also not written ?
> > 
> > If you want more control, all you need to do is add a 'stored' modifier ?
> > (I recently did some fixes to that, though)
> 
> Well, if you fixed the problem, then of course it is not a problem. :)

I don't know if I fixed THE problem, but at least I fixed A problem with 
the stored modifier :)

This fix will be in 2.0.4, BTW.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to