the operators inc/dec are not documeted as operators. (as opposed to the procedures inc/dec)
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
According to http://wiki.freepascal.org/Operator_overloading inc and dec are operators. I tested that and that is true. It is not in the official documentation (yet).
As compared to the inc/dec procedures, there seems a limitation that you can not specify an amount with a default value. I report that separately.
Steps to reproduce:
{$mode objfpc}($H+}
type sometype = type string;
operator inc(var value:sometype):sometype;
begin
end;
Additional information:
See also forum https://forum.lazarus.freepascal.org/index.php/topic,44982.msg316824.html#msg316824
Mantis conversion info:
- Mantis ID: 35347
- OS: all
- OS Build: all
- Build: 41848
- Platform: all
- Version: 3.3.1
- Fixed in revision: 1596 (#cb6606c9)
- Monitored by: » @KaiBurghardt (Kai Burghardt)