Re: [fpc-pascal] Operators for a class

2020-12-31 Thread Sven Barth via fpc-pascal
Am 31.12.2020 um 17:26 schrieb Gabor Boros via fpc-pascal: Hi All, I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla {     INT64   Num; public:     Cla operator +(const Cla& m)     {     Cla  ret(this);  

[fpc-pascal] Operators for a class

2020-12-31 Thread Gabor Boros via fpc-pascal
Hi All, I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla { INT64 Num; public: Cla operator +(const Cla& m) { Cla ret(this); ret.Num += m.Num; return ret; } Gabor _