On Wed, 15 Aug 2018, Sven Barth via fpc-pascal wrote:


But maybe you are using mode delphi ? If so, try separating out the object definition in a separate unit which is not compiled in delphi mode.
A global operator won't help at all as (currently) the operator won't be visible during the specialization. Only if the operator is visible during the *generic's* declaration it would be picked up.

That is contrary to the class operator, which is also only visible during
specialization, after all.

Is there a reason for this behaviour ?

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to