Renamed but non-selective import?
cc
cc at nevernet.com
Tue Jan 12 20:45:55 UTC 2021
On Tuesday, 12 January 2021 at 20:19:20 UTC, ag0aep6g wrote:
> On 12.01.21 21:09, cc wrote:
>> import core.sys.windows.windows;
>> import mymodule; // contains a struct named MSG
>> Error: `core.sys.windows.winuser.MSG` ... conflicts with
>> `mymodule.MSG`
>>
>> vs
>>
>> import core.sys.windows.windows : winMSG = MSG; // this leaves
>> out other symbols
>> Error: undefined identifier `HWND`
>> Error: undefined identifier `LPCSTR`
>
> import core.sys.windows.windows;
> import mymodule;
> alias MSG = mymodule.MSG;
> alias winMSG = core.sys.windows.windows.MSG;
Ahh simple enough, thanks.
More information about the Digitalmars-d-learn
mailing list