Jump to page: 1 214  
Page
Thread overview
DIP66 - Multiple alias this
Oct 10, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Brad Anderson
Oct 10, 2014
Brian Schott
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Marc Schütz
Oct 10, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 12, 2014
IgorStepanov
Oct 13, 2014
IgorStepanov
Oct 12, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Walter Bright
Oct 10, 2014
Walter Bright
Oct 10, 2014
Timon Gehr
Oct 10, 2014
Walter Bright
Oct 10, 2014
Timon Gehr
Oct 10, 2014
Walter Bright
Oct 10, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Timon Gehr
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Timon Gehr
Oct 10, 2014
IgorStepanov
Oct 10, 2014
Walter Bright
Oct 10, 2014
IgorStepanov
Oct 11, 2014
Walter Bright
Oct 11, 2014
IgorStepanov
Oct 12, 2014
Walter Bright
Oct 12, 2014
Marc Schütz
Oct 12, 2014
IgorStepanov
Oct 13, 2014
Daniel N
Oct 14, 2014
IgorStepanov
Oct 15, 2014
Dicebot
Oct 15, 2014
Daniel N
Oct 15, 2014
IgorStepanov
Oct 19, 2014
IgorStepanov
Oct 21, 2014
Dicebot
Oct 21, 2014
IgorStepanov
Oct 24, 2014
IgorStepanov
Oct 24, 2014
Meta
Oct 24, 2014
John Colvin
Oct 24, 2014
IgorStepanov
Oct 28, 2014
IgorStepanov
Oct 20, 2014
Daniel N
Oct 20, 2014
IgorStepanov
Oct 10, 2014
Walter Bright
Oct 11, 2014
Jacob Carlborg
Oct 12, 2014
Walter Bright
Oct 12, 2014
Timon Gehr
Oct 28, 2014
IgorStepanov
Oct 28, 2014
Meta
Oct 28, 2014
Meta
Oct 28, 2014
IgorStepanov
Oct 28, 2014
Meta
Oct 29, 2014
IgorStepanov
Oct 31, 2014
Dicebot
Jun 05, 2017
Mike B Johnson
Mar 20, 2019
sighoya
Mar 20, 2019
Mike Franklin
Mar 20, 2019
sighoya
Mar 20, 2019
Mike Franklin
Mar 21, 2019
sighoya
Mar 21, 2019
Mike Franklin
Mar 21, 2019
sighoya
Mar 21, 2019
Mike Franklin
Mar 21, 2019
sighoya
Sep 27, 2020
IGotD-
Sep 27, 2020
12345swordy
Sep 27, 2020
IGotD-
Sep 27, 2020
12345swordy
Sep 27, 2020
IGotD-
Sep 28, 2020
12345swordy
Sep 27, 2020
Ruby The Roobster
Sep 28, 2020
IGotD-
Sep 28, 2020
12345swordy
Sep 28, 2020
IGotD-
Sep 28, 2020
mw
Sep 28, 2020
H. S. Teoh
Sep 28, 2020
mw
Sep 28, 2020
H. S. Teoh
Sep 28, 2020
mw
Sep 28, 2020
H. S. Teoh
Sep 28, 2020
mw
Sep 28, 2020
mw
Sep 28, 2020
H. S. Teoh
Sep 28, 2020
mw
Sep 28, 2020
IGotD-
Sep 28, 2020
12345swordy
Sep 29, 2020
Walter Bright
Sep 29, 2020
12345swordy
Sep 30, 2020
Paul Backus
Sep 30, 2020
Mike
Sep 30, 2020
Mike
Sep 30, 2020
Mike
Sep 30, 2020
H. S. Teoh
Sep 30, 2020
H. S. Teoh
Sep 30, 2020
rikki cattermole
Sep 30, 2020
IGotD-
Sep 30, 2020
Paolo Invernizzi
Sep 30, 2020
Simen Kjærås
Sep 30, 2020
H. S. Teoh
Sep 30, 2020
Paolo Invernizzi
Sep 30, 2020
mw
Sep 30, 2020
Mike
Oct 01, 2020
Mike
Aug 05, 2021
Carl Sturtivant
Sep 30, 2020
IGotD-
Sep 29, 2020
IGotD-
Sep 29, 2020
IGotD-
Sep 28, 2020
mw
October 10, 2014
I've created DIP for my pull request.
DIP: http://wiki.dlang.org/DIP66
PR: https://github.com/D-Programming-Language/dmd/pull/3998

Please, comment it.
October 10, 2014
On 10/10/14 1:09 PM, IgorStepanov wrote:
> I've created DIP for my pull request.
> DIP: http://wiki.dlang.org/DIP66
> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>
> Please, comment it.
Hm... not sure you need a DIP.

From page 231 of TDPL: "A class could introduce any number of alias this declarations, thus subtyping any number of types."

-Steve
October 10, 2014
On Friday, 10 October 2014 at 17:31:23 UTC, Steven Schveighoffer wrote:
> On 10/10/14 1:09 PM, IgorStepanov wrote:
>> I've created DIP for my pull request.
>> DIP: http://wiki.dlang.org/DIP66
>> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>>
>> Please, comment it.
> Hm... not sure you need a DIP.
>
> From page 231 of TDPL: "A class could introduce any number of alias this declarations, thus subtyping any number of types."
>
> -Steve

TDPL tells that multiple alias this should be allowed, but tell nothing about conflict resolving. General idea of this DIP is sistematize rules for alias this. Please comment this part. Maybe I've forgot some cases, maybe introduce dangerous semantic rule.
October 10, 2014
On Friday, 10 October 2014 at 17:31:23 UTC, Steven Schveighoffer wrote:
> On 10/10/14 1:09 PM, IgorStepanov wrote:
>> I've created DIP for my pull request.
>> DIP: http://wiki.dlang.org/DIP66
>> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>>
>> Please, comment it.
> Hm... not sure you need a DIP.
>
> From page 231 of TDPL: "A class could introduce any number of alias this declarations, thus subtyping any number of types."
>
> -Steve

Igor was asked to write a DIP for it by Walter and Andrei. Here's the context: https://github.com/D-Programming-Language/dmd/pull/3998#issuecomment-58286631
October 10, 2014
On 10/10/14, 10:09 AM, IgorStepanov wrote:
> I've created DIP for my pull request.
> DIP: http://wiki.dlang.org/DIP66
> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>
> Please, comment it.

Thanks, will do. Everybody interested please chime in! -- Andrei
October 10, 2014
On 10/10/14, 10:31 AM, Steven Schveighoffer wrote:
> On 10/10/14 1:09 PM, IgorStepanov wrote:
>> I've created DIP for my pull request.
>> DIP: http://wiki.dlang.org/DIP66
>> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>>
>> Please, comment it.
> Hm... not sure you need a DIP.
>
>  From page 231 of TDPL: "A class could introduce any number of alias
> this declarations, thus subtyping any number of types."

TDPL is not reference. The DIP should cover various corner cases. -- Andrei

October 10, 2014
On 10/10/14 2:17 PM, Andrei Alexandrescu wrote:
> On 10/10/14, 10:31 AM, Steven Schveighoffer wrote:
>> On 10/10/14 1:09 PM, IgorStepanov wrote:
>>> I've created DIP for my pull request.
>>> DIP: http://wiki.dlang.org/DIP66
>>> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>>>
>>> Please, comment it.
>> Hm... not sure you need a DIP.
>>
>>  From page 231 of TDPL: "A class could introduce any number of alias
>> this declarations, thus subtyping any number of types."
>
> TDPL is not reference. The DIP should cover various corner cases. -- Andrei
>

OK, thanks everyone. I thought DIPs were specifically for proposals that had not been already approved.

-Steve
October 10, 2014
On Friday, 10 October 2014 at 17:09:08 UTC, IgorStepanov wrote:
> I've created DIP for my pull request.
> DIP: http://wiki.dlang.org/DIP66
> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>
> Please, comment it.

There is an error in the wiki formatting in the second code block. (`{| class="wikitable"` should not be there)

I don't see any problems with the actual content of the DIP.
October 10, 2014
On Friday, 10 October 2014 at 17:09:08 UTC, IgorStepanov wrote:
> I've created DIP for my pull request.
> DIP: http://wiki.dlang.org/DIP66
> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>
> Please, comment it.

I understand that as a first step it was suggested to implement the strictest behaviour regarding conflicts, namely to disallow them entirely.

However, I think more permissive strategies are useful, like in this example:
https://github.com/D-Programming-Language/dmd/pull/3998#issuecomment-58570742

Conflict resolution can work like overload resolution, with different levels of matching and partial ordering.
October 10, 2014
On 10/10/14 1:09 PM, IgorStepanov wrote:
> I've created DIP for my pull request.
> DIP: http://wiki.dlang.org/DIP66
> PR: https://github.com/D-Programming-Language/dmd/pull/3998
>
> Please, comment it.

This part:

void test()
    {
        C c;
        int i = c; //Error: c.a.i vs c.b.i
    }

    static assert(is(C : int)); //Ok, because C is subtype of int anyway.

I think might be wrong. There is a lot of code out there that says, e.g.:

void foo(T)(T t) if(is(T : U))
{
  U u = t;
  ...
}

Which will now create an error in the wrong place. IMO, the 'is' test should also fail.

-Steve
« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10 11