Bug 14666, can we prioritize ?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 10 15:12:46 PDT 2015


On Wednesday, 10 June 2015 at 21:21:35 UTC, Timon Gehr wrote:
>> Cyclic imports create problems that do not exists with forward
>> declaration.
>
> No, they don't. They just preclude the band-aid fix.
>
>> This is surprisingly hard to get a well defined behavior
>> for compile time feature.
>
> This is a good thing because it makes reasonably sure the final 
> resolution rules won't take order of declaration into account.
>

Well I haven't any solution that is both fast and work with 
cyclic import in a deterministic manner.

>> I would argue to make them illegal, but that
>> is still a good idea to avoid them when possible.
>
> That's the lazy way. :o)
>
> I really need to find some time to get back to D frontend 
> implementation.
>
> What does SDC do now?

Pretty much what is proposed in DIP31


More information about the Digitalmars-d mailing list