[fpc-devel] Re: Illegal type conversion: "<enumeration type>"to	"TObject"
    Craig Peterson 
    craig at scootersoftware.com
       
    Fri Jul 18 23:29:49 CEST 2008
    
    
  
Thanks Thomas, and the turnaround was definitely faster than I'm used to 
with Borland. :)
> However, all other objections against typecasting still apply, i.e. it's imho not too clean to typecast and breaks the -CR functionality and has maybe other issues.
We're still trying to get the whole project compiling, but once that's 
done I'm sure we'll start looking into using FPC's additional warnings 
and checks.  At that point we can start reducing our reliance on Delphi 
hacks.
I am curious about the -CR functionality though.  I haven't used it 
before, but according to the User's Guide it "Generates checks when 
calling methods...".  We're not calling any methods of the "objects" in 
this case, and I'd be surprised if TStrings was doing anything with them 
other than copying them around, so why wouldn't this be compatible?
Thanks,
Craig
    
    
More information about the fpc-devel
mailing list