[fpc-devel] Questions and suggestions to fpWeb

Marcos Douglas md at delfire.net
Tue Aug 3 14:29:48 CEST 2010


On Tue, Aug 3, 2010 at 5:41 AM, Michael Van Canneyt
<michael at freepascal.org> wrote:
>
> On Fri, 30 Jul 2010, Luiz Americo Pereira Camara wrote:
> [snip]
>>
>> - Content and Contents properties are redundant. Also can lead to some
>> performance issues. See the code of DoGetContent:
>>
>>  If (Self.Content<>'') then
>>    Content.Write(Self.Content[1],Length(Self.Content));
>>
>> Content is computed (Contents items concatenated) three times.
>>
>> Don't be surprised if users do things like
>>
>> while  not ready do
>> Content := Content + 'xxx';
>
> I agree that the contents/content properties should be reduced to 1
> property. But this is a change which will break backwards compatibility.

So, start using the "deprecated" for Content property...


Regards,
MD



More information about the fpc-devel mailing list