mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
21 lines
215 B
ObjectPascal
21 lines
215 B
ObjectPascal
unit toperator4;
|
|
|
|
interface
|
|
|
|
type
|
|
op3 = record
|
|
x,y : real;
|
|
end;
|
|
|
|
operator + (const a,b : op3) c : op3;
|
|
|
|
implementation
|
|
|
|
operator + (const a,b : op3) c : op3;
|
|
begin
|
|
c.x:=a.x+b.x;
|
|
c.y:=a.y+b.y;
|
|
end;
|
|
|
|
end.
|