Renamed but non-selective import?
ag0aep6g
anonymous at example.com
Tue Jan 12 20:19:20 UTC 2021
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;
More information about the Digitalmars-d-learn
mailing list