Spell checking errors can be hilarious

Steven Schveighoffer schveiguy at gmail.com
Mon Oct 12 20:46:07 UTC 2020


On 10/12/20 4:11 PM, Walter Bright wrote:
> On 10/12/2020 11:17 AM, Steven Schveighoffer wrote:
>> As I understand it, these functions to import mappings are hard coded 
>> in the compiler.
> https://github.com/dlang/dmd/blob/master/src/dmd/imphint.d
> 
> Of course, this won't work for "to" since there are multiple 
> declarations of "to" in Phobos (shoot me now).

What do you mean? Just add "to" : "std.conv". Is there a problem with it?

But better would be a customizable list for the compiler to read (only 
in the case of an unresolved symbol), then you aren't limited to a 
hard-coded list.

-Steve


More information about the Digitalmars-d mailing list