Case sensitivity when linking

Lewis via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 28 23:43:26 PST 2017


On Sunday, 29 January 2017 at 07:31:33 UTC, Walter Bright wrote:
>
> https://digitalmars.com/ctg/ctgLinkSwitches.html#ignorecase
>
> But I suggest, for maximal portability, to treat names as case 
> sensitive.

Ah, cool. Agreed, my preference is just to keep everything 
case-sensitive.

I wonder though, would it make sense to make differing case in 
import statements a compiler error? And possibly give it a 
similar switch to optlink for ignoring case if need be? I hit 
this error because of a typo in one of my import statements, but 
the error message I got back from the linker didn't do a good job 
of pointing out my mistake (as is understandably true for most 
linker errors). For a simple and easy-to-catch typo, it seems 
like we could provide a better error message by catching this in 
the compiler  :)


More information about the Digitalmars-d mailing list