[fpc-devel] Re: Illegal type conversion: "<enumeration type>"to "TObject"
Vincent Snijders
vsnijders at quicknet.nl
Sat Jul 19 09:17:26 CEST 2008
Marco van de Voort schreef:
>> 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?
Is there {$ObjectCheck OFF} ?
Vincent
More information about the fpc-devel
mailing list