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

Florian Klaempfl florian at freepascal.org
Thu Nov 5 09:41:46 CET 2009


Paul Ishenin schrieb:
> Florian Klaempfl wrote:
> 
>> This rtti isn't published for program use but e.g. writeln(<enum>)
>> uses it.
> 
> Yes, I was surprised when I tried to look why writeln gives a runtime
> error for unexistent element of enum.
> 
> Also I looked at compile - it just checks if enum has jumps and refuses
> typeinfo() call for it. Why does compiler hides this info?

Everything exposed must be maintained ;) I guess the reason is that it
was an experimental implementation first and it was not enabled, later,
nobody documented it and enabled it.



More information about the fpc-devel mailing list