[fpc-devel] Illegal type conversion: "<enumeration type>" to	"TObject"
    Micha Nelissen 
    micha at neli.hopto.org
       
    Thu Jul 17 19:54:58 CEST 2008
    
    
  
Michael Van Canneyt wrote:
>>>  AObject := TObject(AValue);
>>>
>>> Could this be supported in the Delphi mode as well?
>> Please submit a bug report.
> 
> Eh ? 
> As far as I'm concerned this should not compile in Objfpc mode as well ?
It's a typecast, so then almost anything is allowed, except perhaps if
the size doesn't match.
Micha
    
    
More information about the fpc-devel
mailing list