In our previous episode, Dani?l Mantione said:
> >> 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.

Ah, didn't know the intiializer/finalizer tables can be accessed/walked using
typeinfo too.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to