Can we enable -preview=rvaluereference now?
IchorDev
zxinsworld at gmail.com
Wed Aug 14 15:37:39 UTC 2024
On Tuesday, 13 August 2024 at 10:43:18 UTC, Nicholas Wilson wrote:
> 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`
That’s feels like the silliest reason to not un-preview
something, and I bet if we just did it anyway then someone would
actually fix that.
More information about the Digitalmars-d
mailing list