[fpc-devel] Functors

Blaise at blaise.ru Blaise at blaise.ru
Sun Dec 26 21:59:48 CET 2021


On 26.12.2021 23:47, Blaise--- via fpc-devel wrote:
> -------8<-------
> type R = record
>      procedure Foo(...); operator ();
>      function Bar(const A, B: R): R; operator +;
> end;
> -------8<-------

Made a blunder there, sorry: for Bar, it should either be
	function Bar(const Other: R): R; operator +;
or
	class function Bar(const A, B: R): R; static; operator +;

-- 
βþ


More information about the fpc-devel mailing list