Since dmd 2.096.0: import `x.t` is used as a type
    Basile B. 
    b2.temp at gmx.com
       
    Sat May  1 16:32:32 UTC 2021
    
    
  
On Friday, 30 April 2021 at 21:41:43 UTC, kdevel wrote:
> On Friday, 30 April 2021 at 19:17:14 UTC, user1234 wrote:
> [...]
>> Likely a side effect of 
>> https://github.com/dlang/dmd/pull/12178 but
>> according to me the new behavior is correct.
>
> It breaks my code. I have files named $C containing struct or 
> class $C plus some other stuff. Using the workaround means to 
> switch to selective imports for all used types/functions within 
> this module.
>
> Found another workaround: I created a symlink here -> . and 
> replaced all imports $C with here.$C. In some places I had to 
> remove an artificial  "prefix" ($C.$C -> $C).
I understand the situation but I can opnly suggest to fill a 
report.
Hard breakage is not acceptable, even if the goal is to introduce 
a more correct behavior.
    
    
More information about the Digitalmars-d-learn
mailing list