Date: Fri, 17 Feb 2023 01:15:45 +0200
On Fri, 17 Feb 2023 at 01:08, Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
> If you want to retain movability, the syntax is:
>
> void Func(void) noreentry&&;
>
> Those two ampersands are not to be confused with marking a method to
> only be invoked on an R-value, which would be:
>
> void Func(void) && noreentry&&;
I don't see how this idea ever had a viable bang/buck ratio for a
language feature, and this sort of hacks make that ratio even worse.
Std-Proposals <std-proposals_at_[hidden]> wrote:
> If you want to retain movability, the syntax is:
>
> void Func(void) noreentry&&;
>
> Those two ampersands are not to be confused with marking a method to
> only be invoked on an R-value, which would be:
>
> void Func(void) && noreentry&&;
I don't see how this idea ever had a viable bang/buck ratio for a
language feature, and this sort of hacks make that ratio even worse.
Received on 2023-02-16 23:15:59