Time to remove ugly auto ref ?

2015-06-19 Thread Temtaime via Digitalmars-d
Hi all ! It's too ugly that we cannot write simply « ref in » on functions argument. Many of functions expects a const argument and don't want to know is it a temp object or not. In C++ we can write struct Number { Number operator+(const Number &num); ... }; And then use it as « auto c = a +

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Namespace via Digitalmars-d
I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Temtaime via Digitalmars-d
Hi ! I think that's great but isn't it better to use « ref in » instead ?

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Namespace via Digitalmars-d
On Friday, 19 June 2015 at 12:34:49 UTC, Temtaime wrote: Hi ! I think that's great but isn't it better to use « ref in » instead ? Search for DIP 36 and look what the decision was.

Re: Time to remove ugly auto ref ?

2015-06-19 Thread bitwise via Digitalmars-d
On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 What's the holdup on this anyways? Bit

Re: Time to remove ugly auto ref ?

2015-06-19 Thread rsw0x via Digitalmars-d
On Friday, 19 June 2015 at 14:49:59 UTC, bitwise wrote: On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 What's the holdup on this anyways? Bit having a way to track important PRs would be nice.

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Namespace via Digitalmars-d
On Friday, 19 June 2015 at 14:49:59 UTC, bitwise wrote: On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 What's the holdup on this anyways? Bit I've pinged him already two times, but no reaction so far. Theref

Re: Time to remove ugly auto ref ?

2015-06-19 Thread bitwise via Digitalmars-d
On Fri, 19 Jun 2015 11:34:23 -0400, rsw0x wrote: having a way to track important PRs would be nice. I agree. With conversations often spanning between the NG, pull-comments, maybe private emails, it's especially hard for new-comers to figure out what's going on. Bit

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Andrei Alexandrescu via Digitalmars-d
On 6/19/15 9:14 AM, Namespace wrote: On Friday, 19 June 2015 at 14:49:59 UTC, bitwise wrote: On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 What's the holdup on this anyways? Bit I've pinged him already two t

Re: Time to remove ugly auto ref ?

2015-06-19 Thread Namespace via Digitalmars-d
On Friday, 19 June 2015 at 16:53:26 UTC, Andrei Alexandrescu wrote: On 6/19/15 9:14 AM, Namespace wrote: On Friday, 19 June 2015 at 14:49:59 UTC, bitwise wrote: On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 Wha

Re: Time to remove ugly auto ref ?

2015-06-19 Thread bitwise via Digitalmars-d
On Fri, 19 Jun 2015 12:53:25 -0400, Andrei Alexandrescu wrote: On 6/19/15 9:14 AM, Namespace wrote: On Friday, 19 June 2015 at 14:49:59 UTC, bitwise wrote: On Fri, 19 Jun 2015 08:28:17 -0400, Namespace wrote: I've made a PR: https://github.com/D-Programming-Language/dmd/pull/4717 Wha