Re: Beerconf March (dconf online)
On 22/03/2024 5:36 AM, Ethan wrote: On Monday, 18 March 2024 at 22:15:49 UTC, Richard (Rikki) Andrew Cattermole wrote: Perhaps we can do the usual end of month time as well, I'll give you a ping if I can do it. At this rate I could very well be on a plane again, to more southern destinations this time. Naturally, naturally. Let me know when things calm down for you!
Re: Beerconf March (dconf online)
On Monday, 18 March 2024 at 22:15:49 UTC, Richard (Rikki) Andrew Cattermole wrote: Perhaps we can do the usual end of month time as well, I'll give you a ping if I can do it. At this rate I could very well be on a plane again, to more southern destinations this time.
Re: Beta 2.108.0
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@79
Re: Beta 2.108.0
On Saturday, 16 March 2024 at 09:26:20 UTC, Iain Buclaw wrote: The RC for 2.108 has been released, which includes the following changes from the initial beta: - Named Arguments is now implemented and documented as a new feature in this release. The beta supports the feature, but was left undocumented while some remaining issues were being fixed. - Hexstrings now implicitly convert to integer arrays. The beta had introduced support to allow casting to arrays only. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.108.0.html Great release! "Named Arguments" and "String Interpolation" called: "Interpolated Expression Sequences"
Re: Beta 2.108.0
On Thursday, 21 March 2024 at 03:19:16 UTC, Salih Dincer wrote: On Thursday, 21 March 2024 at 02:14:36 UTC, WebFreak001 wrote: On Saturday, 2 March 2024 at 17:40:29 UTC, Iain Buclaw wrote: .. since they drastically make things easier (hexstrings) or even possible in the first place (magic initializer thingies) for library code and generated code. I cannot say the same thing. It is thought-provoking that even the toHex() function, which should be in std.conv, was not included and we had to write it ourselves. SDB@79 This? ``` import std; void main() { int number = 32409; auto hex = format("%X", number); writeln(hex); } ``` or: ``` auto toHex(N)(N number) if (isIntegral!N) { return "%X".format(number); } ... auto hex = 3432.toHex(); ... ```