http://www.freepascal.org/docs-html/ref/refse68.html#x164-17400012.3

the first ( of several) examples on that page is

Var
  C,Z : Complex; // New type complex

begin
  Z:=C;  // assignments between complex types.
end;

The following assignment operator would have to be defined:

Operator := (C : Complex) z : complex;

However, the compiler rejects that with:
project1.lpr(10,38) Error: Impossible to overload assignment for equal types

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to