www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - "Multiple alias this" status?

reply Picaud Vincent <picaud.vincent gmail.com> writes:
Hi All,

I just started to learn a little bit of D.

I read this thread
https://github.com/dlang/dmd/pull/3998

about "Multiple alias this".

I think this feature is very handy, but dmd and gcd compilers 
complain that "there must be only one" alias this.

It is not clear to me if this feature is not available yet or if 
there was a change in the language specifications (Andrei 
Alexandrescu book mentions "§6.13 Multiple subtyping") ?

Does anyone has more information concerning that?

Thanks in advance,
Vincent
Nov 08 2016
parent reply Daniel Kozak via Digitalmars-d <digitalmars-d puremagic.com> writes:
Dne 8.11.2016 v 11:37 Picaud Vincent via Digitalmars-d napsal(a):

 Hi All,

 I just started to learn a little bit of D.

 I read this thread
 https://github.com/dlang/dmd/pull/3998

 about "Multiple alias this".

 I think this feature is very handy, but dmd and gcd compilers complain 
 that "there must be only one" alias this.

 It is not clear to me if this feature is not available yet or if there 
 was a change in the language specifications (Andrei Alexandrescu book 
 mentions "§6.13 Multiple subtyping") ?

 Does anyone has more information concerning that?

 Thanks in advance,
 Vincent
This feature has never been part of any D compiler. As you can see there is a pull request 3998 which trying to add this to D frontend, but there is no activity for a few months.
Nov 08 2016
next sibling parent reply Picaud Vincent <picaud.vincent gmail.com> writes:
Thank you for your answer, that is a sad news.
Nov 08 2016
parent Michelle Long <HappyDance321 gmail.com> writes:
On Tuesday, 8 November 2016 at 11:26:31 UTC, Picaud Vincent wrote:
 Thank you for your answer, that is a sad news.
Yes, sad news! - 2034 A.D. But it is coming!
Oct 25 2018
prev sibling parent Dukc <ajieskola gmail.com> writes:
On Tuesday, 8 November 2016 at 11:07:48 UTC, Daniel Kozak wrote:
 Dne 8.11.2016 v 11:37 Picaud Vincent via Digitalmars-d 
 napsal(a):

 [snip]
 This feature has never been part of any D compiler.  As you can 
 see there is a pull request 3998 which trying to add this to D 
 frontend, but there is no activity for a few months.
Not quite true: https://github.com/SDC-Developers/SDC/blob/master/test/runner/test0036.d But of course, SDC is not considered a "stable" compiler.
Oct 26 2018