And I don't quite understand what speaks against my suggestion.If the compiler decides that by value is a better solution, then structs are received by value, otherwise by ref. But the user don't need to worry about it, because, whatever the compiler may decide to do, he adapt calls to these functions automatically. It is in principle nothing more than what you want.
Don't get me wrong, I also hope that this unfortunate and lengthy
discussion ends. And I also like the idea that const ref works as
in C++.
But I'm sure you can convince neither Walter nor Andrei still the
core developer team.
- Re: About ref used for performance reasons with struct Paulo Pinto
- Re: About ref used for performance reasons with struct Jakob Ovrum
- Re: About ref used for performance reasons with struct Minas Mina
- Re: About ref used for performance reasons with struct kinke
- Re: About ref used for performance reasons with struct deadalnix
- Re: About ref used for performance reasons with struct kinke
- Re: About ref used for performance reasons with str... Namespace
- Re: About ref used for performance reasons with... kinke
- Re: About ref used for performance reasons ... Namespace
- Re: About ref used for performance reasons ... kinke
- Re: About ref used for performance reasons with str... kinke
- Re: About ref used for performance reasons with struct Michel Fortin
- Re: About ref used for performance reasons with struct Maxim Fomin
