Pi constant/function cannot be used a default parameter value
Original Reporter info from Mantis: dexter2048
-
Reporter name: Leo Brückner
Original Reporter info from Mantis: dexter2048
- Reporter name: Leo Brückner
Description:
The code below produces Error: (3203) Illegal expression
Still, Pi is not a problem in constant declarations:
const
Tau = 2*Pi;
Steps to reproduce:
type
RSig = array of Real;
function UnWrap(const arg: RSig; tol: Real = Pi {!} ): RSig;
begin
end;
Additional information:
On a related topic
==================
It would be nice if the Tau constant/function were defined in the system unit the same way as Pi.
More on Tau:
http://tauday.com/tau-manifesto
http://www.math.utah.edu/~palais/pi.html
BTW: In my field (DSP), Tau is really more practical than Pi.
Mantis conversion info:
- Mantis ID: 24190
- Fixed in version: 3.0.0