Don wrote:
The math functions need to work for any rounding mode, not just the default mode. They also set the status flags correctly. In fact, they are almost the only functions where this matters!
Ok, then std.math functions cannot be pure in either your or my proposal, so I'm not seeing the advantage of yours.