[fpc-devel] Re: Testing for..in feature

Florian Klaempfl florian at freepascal.org
Thu Nov 5 09:00:21 CET 2009


Paul Ishenin schrieb:
> Florian Klaempfl wrote:
>> You can use the rtti generated for those enums.
> 
> Actually I can't :)
> 
> uses
>   typinfo;
> type T = (a1, b1=5);
> var
>   ch: T;
>   Info: PTypeInfo;
> begin
>   Info := TypeInfo(T);
> 
> compiler: project1.lpr(10,11) Error: No type info available for this type
>

This rtti isn't published for program use but e.g. writeln(<enum>) uses it.



More information about the fpc-devel mailing list