2013/10/30 Martin <laza...@mfriebe.de>

>
> I think there is no problem with:
>
> var
>   a: array of Integer
> begin
>   A:= obj.proc;
>
> You are NOT using the type. You are using the value.
>

pascal is strong-typed.  You are actually using type along with its value.
 e.g.

var
  a: array of Double;
begin
  a := obj.proc;​​

This will emit a COMPILE time error because compiler know these 2 types are
not compatible.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to