2010/12/29 David Emerson <dle...@angelbase.com>:
> 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;
IIRC you don't have to.

-- 
bflm
freepascal-bits.blogspot.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to