[fpc-devel] Differences between 'tsym' and 'tdef'

Sven Barth pascaldragon at googlemail.com
Fri May 18 08:47:08 CEST 2012


Am 17.05.2012 23:32 schrieb "Joost van der Sluis" <joost at cnoc.nl>:
>
> Hi all,
>
> I'm trying to implement extended RTTI property attributes as supported
> by recent Delphi versions. Extending the parser to allow the property
> attributes syntax was easy.

Nice :D

It might be good to write tests that can be added to $fpcdir/tests/test,
which helped me a lot with class helpers. :)

> Now I'm wondering if I should make this new field of Tpropertysym a TDef
> or a TSym(table). I know that Tsym can store itself to a ppu while a
> TDef does not. But There was something else, too. But I don't remember
> exactly.

As attributes can be added to more than just properties it might be better
to add this more up in the hierarchy (e.g. tdef, like the generic stuff)

> I once figured this out for another compiler-patch but I forgot it.

Do you work in a branch? If not it might be better to change this as
attributes are a bigger change and this way they can be merged/integrated
more easily than with a patch.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120518/cc7524eb/attachment.html>


More information about the fpc-devel mailing list