Can we enable -preview=rvaluereference now?
Nicholas Wilson
iamthewilsonator at hotmail.com
Tue Aug 13 10:43:18 UTC 2024
On Tuesday, 13 August 2024 at 09:11:22 UTC, Nicholas Wilson wrote:
> On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
>> So this preview has been available for more than 5 years.
>> Can we un-preview this now?
>
> https://github.com/dlang/dmd/pull/16778
at the moment, no because it doesn't pass CI. Templates with `ref
T` with `T==void` (misrecognised untyped lambdas e.g. `str =>
dst.put(str)` which should be a delegate) give e.g.:
std/bigint.d(1280): Error: cannot have parameter of type
`void`
More information about the Digitalmars-d
mailing list