[fpc-devel] Re: Illegal type conversion: "<enumeration type>"to "TObject"

Marco van de Voort marcov at stack.nl
Fri Jul 18 20:36:54 CEST 2008


> On 18 Jul 2008, at 18:26, Craig Peterson wrote:
> > Why would that be better than a simple typecast?  Typecasting to/ 
> > from an object is a fast and easy way to associate an integer or  
> > enum with the strings in a TStrings object.
> 
> Note that this will break if you turn on class type checking (-CR). In  
> other words, you cannot use class type checking to check/debug  
> programs that use this trick.

Hmm, can't you turn that off locally?



More information about the fpc-devel mailing list