[Issue 17628] formattedWrite is impure on double

2019-12-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17628

berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@d-ecke.de
 Resolution|--- |DUPLICATE

--- Comment #5 from berni44  ---


*** This issue has been marked as a duplicate of issue 7438 ***

--


[Issue 17628] formattedWrite is impure on double

2019-10-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17628

berni44  changed:

   What|Removed |Added

 CC||lt.infiltra...@gmail.com

--- Comment #4 from berni44  ---
*** Issue 15321 has been marked as a duplicate of this issue. ***

--


[Issue 17628] formattedWrite is impure on double

2018-04-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17628

Eduard Staniloiu  changed:

   What|Removed |Added

 CC||edi33...@gmail.com

--- Comment #3 from Eduard Staniloiu  ---
Since `pureMalloc`, `pureCalloc` and `pureFree` got accepted[0], maybe we could
do the same for `sprintf` and `snprintf`?

[0] - https://github.com/dlang/druntime/pull/1836

--


[Issue 17628] formattedWrite is impure on double

2017-07-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17628

Seb  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com

--- Comment #2 from Seb  ---
> which I think may change FPU flags or something

A hack would to create a pureSnprintf which resets errno to the value before
its execution.

There are talks about doing this for free:

https://github.com/dlang/druntime/pull/1836

--


[Issue 17628] formattedWrite is impure on double

2017-07-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17628

--- Comment #1 from Vladimir Panteleev  ---
Missing:
import std.array : appender;

Seems to be impure because it calls snprintf (which I think may change FPU
flags or something).

--