Beta 2.108.0

Daniel N no at public.email
Sat Mar 16 10:31:13 UTC 2024


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
>
> As usual please report any bugs at
> https://issues.dlang.org
>
> -Iain
> on behalf of the Dlang Core Team

```d
union U
{
     float asFloat;
     uint asInt;
}

auto u0 = U(1.0); // this sets the `asFloat` field
auto u1 = U(asInt: 0x3F800000); // formerly not possible
```

Wow, this is so cool, can't wait to try it out, thanks to 
everyone who made it happen!





More information about the Digitalmars-d-announce mailing list