Propose to replace cyclic dependency error msg

Steven Schveighoffer schveiguy at gmail.com
Thu Dec 6 18:43:53 UTC 2018


On 12/6/18 1:36 PM, H. S. Teoh wrote:
> On Thu, Dec 06, 2018 at 05:03:08PM +0000, Denis Feklushkin via Digitalmars-d wrote:
>> Hi!
>>
>> Just want to propose to replace compiler message from:
>>
>> "Cyclic dependency between module xxx and yyy"
>>
>> by
>>
>> "Cyclic dependency between module ctors/dtors xxx and yyy"
>>
>> Several times faced with the fact that people do not understand that
>> compiler talking about constructors and they try to solve the
>> nonexistent problem of looped import.
> 
> Excellent proposal!  I filed a bug for this:
> 
> 	https://issues.dlang.org/show_bug.cgi?id=19468
> 
> 

Is there really a compiler message that says this? I thought all the 
cyclic dependency checking is done at runtime?

In any case, I agree the message should be clearer.

-Steve


More information about the Digitalmars-d mailing list