Re: Multiple alias this is coming.

2018-10-25 Thread Michelle Long via Digitalmars-d-announce
On Thursday, 18 September 2014 at 11:20:49 UTC, IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. Haha, that is funny!

Re: Multiple alias this is coming.

2014-09-19 Thread Nordlöw
On Thursday, 18 September 2014 at 22:13:14 UTC, IgorStepanov wrote: Is Nullable!(T) with polymorphic type disallowed now? Sorry, I meant NotNull(T) Here's a module https://github.com/nordlow/justd/blob/master/notnull.d a bit tweak from the original design by Adam D Ruppe.

Re: Multiple alias this is coming.

2014-09-19 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 19 September 2014 at 11:25:03 UTC, Nordlöw wrote: On Thursday, 18 September 2014 at 22:13:14 UTC, IgorStepanov wrote: Is Nullable!(T) with polymorphic type disallowed now? Sorry, I meant NotNull(T) Here's a module https://github.com/nordlow/justd/blob/master/notnull.d a bit

Re: Multiple alias this is coming.

2014-09-19 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 9/19/14, 3:21 AM, Dicebot wrote: On Friday, 19 September 2014 at 09:34:22 UTC, ponce wrote: Call me unimaginative, but I'm struggling to see any use case for multiple alias this, and I struggle even more for such constructors aliasing. Pretty much every single time you have ever wanted to

Re: Multiple alias this is coming.

2014-09-19 Thread Nordlöw
On Friday, 19 September 2014 at 13:24:53 UTC, IgorStepanov wrote: What does a troubles with your NotNull implementation you have with old alias this? Do you want to implicit cast from NotNull!(T) to all other NotNull!(B) where B is basetype of T? Yes, that is what I want, but last time I

Re: Multiple alias this is coming.

2014-09-19 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 19 September 2014 at 17:59:44 UTC, Nordlöw wrote: On Friday, 19 September 2014 at 13:24:53 UTC, IgorStepanov wrote: What does a troubles with your NotNull implementation you have with old alias this? Do you want to implicit cast from NotNull!(T) to all other NotNull!(B) where B is

Re: Multiple alias this is coming.

2014-09-19 Thread Nordlöw
On Thursday, 18 September 2014 at 11:20:49 UTC, IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. Further, could this also be used to somehow simplify

Re: Multiple alias this is coming.

2014-09-19 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 19 September 2014 at 17:19:09 UTC, Andrei Alexandrescu wrote: On 9/19/14, 3:21 AM, Dicebot wrote: On Friday, 19 September 2014 at 09:34:22 UTC, ponce wrote: Call me unimaginative, but I'm struggling to see any use case for multiple alias this, and I struggle even more for such

Re: Multiple alias this is coming.

2014-09-19 Thread Jesse Phillips via Digitalmars-d-announce
On Thursday, 18 September 2014 at 20:11:12 UTC, IgorStepanov wrote: Do you ask about alias this or about it multiple usage. Multiple usage is similar to single, but multiple:) Just an FYI, bearophile is very knowledgeable about D and one of the oldest community members, he holds the record

Re: Multiple alias this is coming.

2014-09-19 Thread Dmitry Olshansky via Digitalmars-d-announce
19-Sep-2014 02:16, bearophile пишет: IgorStepanov: Do you ask about alias this or about it multiple usage. Multiple usage is similar to single, but multiple:) I meant the multiple usage. And none of your examples here are use cases :-( I'd like to see one use case, or more. For instance

Re: Multiple alias this is coming.

2014-09-19 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 19 September 2014 at 18:46:14 UTC, IgorStepanov wrote: On Friday, 19 September 2014 at 17:19:09 UTC, Andrei Alexandrescu wrote: On 9/19/14, 3:21 AM, Dicebot wrote: On Friday, 19 September 2014 at 09:34:22 UTC, ponce wrote: Call me unimaginative, but I'm struggling to see any use

Re: Multiple alias this is coming.

2014-09-19 Thread IgorStepanov via Digitalmars-d-announce
On Friday, 19 September 2014 at 18:49:57 UTC, Jesse Phillips wrote: On Thursday, 18 September 2014 at 20:11:12 UTC, IgorStepanov wrote: Do you ask about alias this or about it multiple usage. Multiple usage is similar to single, but multiple:) Just an FYI, bearophile is very knowledgeable

Multiple alias this is coming.

2014-09-18 Thread IgorStepanov via Digitalmars-d-announce
I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it.

Re: Multiple alias this is coming.

2014-09-18 Thread Rikki Cattermole via Digitalmars-d-announce
On 18/09/2014 11:20 p.m., IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. Awesome was waiting for something like this! Also did we ever consider alias

Re: Multiple alias this is coming.

2014-09-18 Thread via Digitalmars-d-announce
On Thursday, 18 September 2014 at 12:51:48 UTC, Rikki Cattermole wrote: On 18/09/2014 11:20 p.m., IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it.

Re: Multiple alias this is coming.

2014-09-18 Thread Foo via Digitalmars-d-announce
On Thursday, 18 September 2014 at 18:38:57 UTC, Ali Çehreli wrote: On 09/18/2014 04:20 AM, IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. Awesome!

Re: Multiple alias this is coming.

2014-09-18 Thread bearophile via Digitalmars-d-announce
IgorStepanov: I've created pull request, which introduces multiple alias this. Can someone show one or more usage cases? Thank you, bye, bearophile

Re: Multiple alias this is coming.

2014-09-18 Thread IgorStepanov via Digitalmars-d-announce
On Thursday, 18 September 2014 at 19:52:42 UTC, bearophile wrote: IgorStepanov: I've created pull request, which introduces multiple alias this. Can someone show one or more usage cases? Thank you, bye, bearophile Do you ask about alias this or about it multiple usage. Multiple usage is

Re: Multiple alias this is coming.

2014-09-18 Thread Nordlöw
On Thursday, 18 September 2014 at 11:20:49 UTC, IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. Exciting! What more good things than a better behaving

Re: Multiple alias this is coming.

2014-09-18 Thread bearophile via Digitalmars-d-announce
IgorStepanov: Do you ask about alias this or about it multiple usage. Multiple usage is similar to single, but multiple:) I meant the multiple usage. And none of your examples here are use cases :-( I'd like to see one use case, or more. Bye, bearophile

Re: Multiple alias this is coming.

2014-09-18 Thread Ali Çehreli via Digitalmars-d-announce
On 09/18/2014 12:52 PM, bearophile wrote: Can someone show one or more usage cases? I can't claim that I have experience with multiple alias this ;) but I like the following example that I had come up with: class TeachingAssistant { Student studentIdentity; Teacher teacherIdentity;

Re: Multiple alias this is coming.

2014-09-18 Thread ketmar via Digitalmars-d-announce
On Thu, 18 Sep 2014 15:20:04 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: [1] http://ddili.org/ders/d.en/alias_this.html heh, i just wanted to point at your book. ;-) signature.asc Description: PGP signature

Re: Multiple alias this is coming.

2014-09-18 Thread IgorStepanov via Digitalmars-d-announce
On Thursday, 18 September 2014 at 22:16:23 UTC, bearophile wrote: IgorStepanov: Do you ask about alias this or about it multiple usage. Multiple usage is similar to single, but multiple:) I meant the multiple usage. And none of your examples here are use cases :-( I'd like to see one use

Re: Multiple alias this is coming.

2014-09-18 Thread deadalnix via Digitalmars-d-announce
On Thursday, 18 September 2014 at 11:20:49 UTC, IgorStepanov wrote: I've created pull request, which introduces multiple alias this. https://github.com/D-Programming-Language/dmd/pull/3998 Please see the additional tests and comment it. What is the policy to resolve conflict ? BTW, SDC