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

Paul Ishenin ip at kmiac.ru
Thu Nov 5 09:30:14 CET 2009


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?

Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list