[fpc-devel] Parameters must match exactly?
    Florian Klaempfl 
    florian at freepascal.org
       
    Tue May 18 10:35:57 CEST 2010
    
    
  
Micha Nelissen schrieb:
> Florian Klaempfl wrote:
>>
>> ... and one uses normally a function and not a var/out parameter.
> 
> That also would need a typecast since the function would return a parent
> class of the real class that was created, but the somehow the callee
> knows it's a descendent, so needs a cast to get to it (or use the "is"
> or "as" operators or ... etc).
> 
Yes. If needed the proper solution is to use the as-operator.
    
    
More information about the fpc-devel
mailing list