How can overloads be distinguished on attributes alone?
    bachmeier 
    no at spam.net
       
    Mon Jul 31 17:46:00 UTC 2023
    
    
  
On Monday, 31 July 2023 at 16:52:03 UTC, Dennis wrote:
> On Monday, 31 July 2023 at 16:09:11 UTC, bachmeier wrote:
>> Is there a reason it would be difficult to make this not 
>> compile?
>
> No, except that might result in code breakage.
The only way you could have code breakage is if you have
```
void f() { }
extern(C) void f() { }
```
but your program never calls f. The fix would be to comment out 
one of the duplicate function definitions.
    
    
More information about the Digitalmars-d-learn
mailing list