Importing struct
evilrat
evilrat666 at gmail.com
Mon Aug 13 13:05:28 UTC 2018
On Monday, 13 August 2018 at 12:44:44 UTC, evilrat wrote:
>
>
> Another option to save up on typing is renamed imports
>
> import mc = MyClass;
>
> mc.MyClass.parse(...)
>
this also should work
import mc = MyClass;
alias MyClass = mc.MyClass; // make synonym
// now it is just MyClass
MyClass.parse(...)
however the best option is simply avoid naming anything with same
name as module.
More information about the Digitalmars-d-learn
mailing list