Beta 2.103.0
ryuukk_
ryuukk.dev at gmail.com
Thu Mar 2 15:56:35 UTC 2023
On Thursday, 2 March 2023 at 14:40:04 UTC, Iain Buclaw wrote:
> Glad to announce the first beta for the 2.103.0 release, ♥ to
> the 43 contributors.
>
> This release comes with 9 major changes, including:
>
> - In the compiler, `-preview=dip25` is now enabled by default.
> - In the standard library, std.uni Grapheme functions have been
> updated to conform to Unicode 15
> - In dub, the `--color` argument now accepts the values `auto`,
> `never`, and `always`.
>
> http://dlang.org/download.html#dmd_beta
> http://dlang.org/changelog/2.103.0.html
>
> As usual please report any bugs at https://issues.dlang.org
>
> -Iain
> on behalf of the Dlang Core Team
```D
@safe ref int wrongIdentity(ref int x) {
return x; // ERROR! Cannot return a ref, please use "return
ref"
}
@safe ref int identity(return ref int x) {
return x; // fine
}
```
a keyword to return a value
``return 5;``
and a keyword to tell that a reference is returnable
``return ref int x``
that's dumb, why?
More information about the Digitalmars-d-announce
mailing list