Yes I want rvalue refs, just not like this.
I was for this back when it was only for 'const ref' but that
somehow changed to just ref. Which I think is a mistake. Yes D's
const is broken and useless, but I don't think that's a reason to
introduce difficult to locate bugs with the addition of this
feature. There's not a simple way to locate where code might be
breaking if a temporary value is being passed to a ref function
when it wasn't intended. Right now this is a compiler error, even
in C++. But with this proposed change it might take a lengthy
amount of time in the debugger trying to understand what is
happening.
- Re: DIP 1016-... Manu via Digitalmars-d
- Re: DIP 1016-... Paolo Invernizzi via Digitalmars-d
- Re: DIP 1016-... rikki cattermole via Digitalmars-d
- Re: DIP 1016-... 12345swordy via Digitalmars-d
- Re: DIP 1016-... Paolo Invernizzi via Digitalmars-d
- Re: DIP 1016-... 12345swordy via Digitalmars-d
- Re: DIP 1016-... Paolo Invernizzi via Digitalmars-d
- Re: DIP 1016-... 12345swordy via Digitalmars-d
- Re: DIP 1016-... Manu via Digitalmars-d
- Re: DIP 1016-... aliak via Digitalmars-d
- Re: DIP 1016-... Johnatune via Digitalmars-d
- Re: DIP 1016-... Manu via Digitalmars-d
- Re: DIP 1016-... Jim Balter via Digitalmars-d
- Re: DIP 1016--ref T accepts r-values--C... Elie Morisse via Digitalmars-d
- Re: DIP 1016--ref T accepts r-values--C... kinke via Digitalmars-d
