[fpc-devel] Memory consumed by strings

Daniël Mantione daniel.mantione at freepascal.org
Sun Nov 23 15:09:53 CET 2008



Op Sun, 23 Nov 2008, schreef Marco van de Voort:

> In our previous episode, Martin Schreiber said:
> [ Charset ISO-8859-1 unsupported, converting... ]
>> On Sunday 23 November 2008 13.44:02 Mattias Gaertner wrote:
>>
>>> But RTTI only contains published classes, does it not?
>>>
>> AFAIK there are some more elements where is is possible to get a typeinfo
>> pointer. A compiler specialist can say more. :-)
>
> Well, I'm not an expert, but I can only think of enumerations. These have
> RTTI under Delphi because they are shown in the Object Inspector.
>
> And afaik that's it?

The compiler uses RTTI to copy data structures with dynamic data type 
inside. I.e. records have RTTI because there might be a widestring inside, 
the RTL to do e.g. an assignment correctly.

Daniël


More information about the fpc-devel mailing list