[fpc-devel] Macro Processing

Florian Klämpfl florian at freepascal.org
Sat May 14 19:15:05 CEST 2011

Am 14.05.2011 19:02, schrieb Joerg Schuelke:
> I do not understand this C argument, I swear I am an pascal man! ;(
> Again, nothing against RTTI, but I do not like to be forced to use it.

What's wrong with it?

> By the way the RTTI approach do not solve the problem, if there is one,
> we did not see that:
> 	enum(en1,en2,en3,...);
>           ...
> 	strarr:array[...] of shortstring={
>           str(en1),
>           str(en2),
>            ...
>         }
> does only half of the work. You have to keep them in sync furthermore,
> see the order.

The idea is to get completly rid of strarr because the typical use case
is like s:=strarr[en]; which can be replaced e.g. by writestr(s,en);

More information about the fpc-devel mailing list