Am 27.01.2012 17:25, schrieb Marco van de Voort:
In our previous episode, Kornel Kisielewicz said:
?B := A;
end;
Does it also work (in Delphi and in FPC Delphi mode) if A and B would
be defined in different units?
This compiles in Delphi:
{$apptype console}
Type
TLIST<T>=class
end;
type
Ta= TLIST<POINTER>;
TB= TLIST<POINTER>;
Type
TC=TLIST<POINTER>;
var
A: TList<Pointer>;
B: TList<Pointer>;
aa : TA;
bb : TB;
cc : TC;
begin
B := A;
aa:=a;
bb:=aa;
cc:=aa;
end.
This should compile also in FPC (in mode Delphi). The question is about
different units though (I will test that myself on my ride home in a few
minutes, no worries :) )
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel