[fpc-pascal] commutative operators

David Emerson dle3ab at angelbase.com
Wed Dec 29 19:38:14 CET 2010

suppose I define an operator:

operator + (a: one_type; b: another_type) : one_type;

Is there any way to specify that it should be "commutative", so I don't have to 
additionally define the reverse:

operator + (a: another_type; b: one_type) : one_type;


More information about the fpc-pascal mailing list