Hi
what is the equivalence of this code using mode objfpc ?
btw , it compile fine with {$mode delphi}
type
obj<T> = object
x : T;
class operator add (arg1 ,arg2 : obj<T>):obj<T>; inline;
end;
class operator obj<T>.add (arg1 ,arg2 : obj<T>):obj<T>;
begin
result.x := arg1.x + arg2.x;
end;