This needs to be fixed - ref
Nick Treleaven
nick at geany.org
Fri Aug 30 11:20:05 UTC 2024
On Thursday, 29 August 2024 at 02:29:21 UTC, Manu wrote:
>> I've heard that C++ references are a complete swamp of special
>> cases (regardless of lvalue vs rvalue reference).
>>
>
> You've "heard"? I'm sorry, but your qualification to comment on
> the topic is definitely problematic from here on...
Herb Sutter:
> References are for parameter passing, including range-for.
> Sometimes they’re useful as local variables
https://herbsutter.com/2020/02/23/references-simply/
And in Herb's C++2 project, references are not part of the type.
There is `inout`, which is a parameter storage class, like D's
`ref`, and like all modern languages I can think of.
More information about the Digitalmars-d
mailing list