Replacement for snprintf

berni44 dlang at d-ecke.de
Sat Dec 14 08:44:21 UTC 2019


On Friday, 8 November 2019 at 14:42:29 UTC, berni44 wrote:
> Meanwhile I filed a first PR: 
> https://github.com/dlang/phobos/pull/7264 - only part of a 
> complete replacement is achieved with that: Only the 'f' 
> qualifier is replaced and that only for float and double. But 
> it's a start and I want to make small steps.

Update: While this first PR is still waiting for being revied, a 
second PR (the same for '%a' qualifier) has been merged last 
week. Today I filed a third PR (for '%e' qualifier).

The '%g' qualifier has to wait until these two PRs are merged, 
because it depends strongly on those two. With the help of Petar 
Kirov [ZombineDev] I meanwhile also managed to make the whole 
CTFEable. But this also has to wait for the two PRs mentioned 
above.

Next steps will be some speed optimization for small exponents 
(works allready on paper but I havn't implemented and tested it 
yet) and for large exponents (only a vague idea yet).


More information about the Digitalmars-d mailing list