Can we enable -preview=rvaluereference now?

Manu turkeyman at gmail.com
Wed Aug 14 23:50:51 UTC 2024


On Thu, 15 Aug 2024 at 01:41, IchorDev via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> 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.
>

I'm pretty sure Nick is in support of un-preview-ing it. That's just the
state of it...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20240815/b8b10c4c/attachment.htm>


More information about the Digitalmars-d mailing list