[fpc-pascal] operator overloading question
Alexey Pavluchenko
pavluchenko at isp.kiev.ua
Tue May 8 12:03:58 CEST 2007
Hello all,
When trying to compile the following code
=== cut===
unit foo;
interface
type tbar = record
somefield: integer;
end;
pbar = ^tbar;
operator + (a: pbar; b: pbar) c: pbar;
implementation
operator + (a: pbar; b: pbar) c: pbar;
begin
end;
end.
=== cut===
the compiler (2.0.4) stops with the "impossible operator overload"
message. Two questions arise: 1) why is it considered impossible and
2) how can I workaround this?
--
Best regards,
Alexey
More information about the fpc-pascal
mailing list