Interfaces do not behave like classes.  Each each interface 
implemented/supported by a class is unique - at runtime a "descendent" 
interface is entirely unrelated to its ancestor. 

Regards Andrew.

On 30 Jan 11, at 20:37 , cobines wrote:

> Hello everyone,
> 
> I have attached a program about which I have a question.
> 
> Why does iBase have different value than iBaseAsBase? It seems simply
> assigning to interface variable doesn't change it to base interface, I
> have to explicitly use "as IBaseInterface". Is it correct?
> 
> Basically, I'm trying to determine in CopyToInterface function if the
> parameter points to the same object as Self.
> 
> --
> cobines
> <project1.lpr>_______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to