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