Beta 2.108.0

Salih Dincer salihdb at hotmail.com
Thu Mar 21 16:21:49 UTC 2024


On Thursday, 21 March 2024 at 09:16:07 UTC, Andrea Fontana wrote:
> This?
>
> ```d
> auto toHex(N)(N number) if (isIntegral!N) { return 
> "%X".format(number); }
> ```

No, you respect your efforts. Simple solutions without memory 
allocation are needed. Moreover, there are already very good 
algorithms in the runtime:

https://github.com/dlang/dmd/blob/master/druntime/src/core/internal/string.d#L34

SDB at 79



More information about the Digitalmars-d-announce mailing list