January 18, 2013 Re: auto ref and non-templated functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | if a function's argument is const ref, what would be the problem of allowing it to to be passed const ref lvalues + rvalues? |
January 18, 2013 Re: auto ref and non-templated functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Era Scarecrow | > Not to bring back something that might be considered closed, But is auto ref going to be allowed for non-template functions in an upcoming version? There's plenty of times I'd like to use ref when possible but don't want to write a forwarding function converting non-ref to ref. The pull is still there (https://github.com/D-Programming-Language/dmd/pull/1019) but as I'm asking here: http://forum.dlang.org/thread/hlyospppnjiziyokfvdd@forum.dlang.org#post-pvwbojrtygwrxxviwarv:40forum.dlang.org an official statement would be pleasant. |
Copyright © 1999-2021 by the D Language Foundation