Efficiently passing structs

bitwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 5 14:58:56 PDT 2015


On Tue, 05 May 2015 17:33:09 -0400, Namespace <rswhite4 at gmail.com> wrote:

> I've discussed that so many times... just search for auto / scope ref...  
> ;)
> It will never happen.
>
> See:
> http://forum.dlang.org/thread/ntsyfhesnywfxvzbemwc@forum.dlang.org?page=1
> http://forum.dlang.org/thread/ylebrhjnrrcajnvtthtt@forum.dlang.org?page=1
> http://forum.dlang.org/thread/mailman.2989.1356370854.5162.digitalmars-d@puremagic.com
> http://forum.dlang.org/thread/tkzyjhshbqjqxwzppdin@forum.dlang.org#post-mailman.2965.1356319786.5162.digitalmars-d-learn:40puremagic.com
> http://forum.dlang.org/thread/hga1jl$18hp$1@digitalmars.com

I did read some of these.

Has anyone brought up simply allowing "in ref" or "const scope ref" to  
accept rvalues? If DIPs 69 and 25 were implemented, I don't see why this  
would be a problem. I agree that "const ref" should not, but I don't see a  
problem with "const scope ref".

I haven't seen a conversation that was strongly in favor of DIP 36. Why  
hasn't it been rejected?

   Bit


More information about the Digitalmars-d-learn mailing list