D import idiom compilation time
bauss
jj_1337 at live.dk
Fri Jan 4 13:11:32 UTC 2019
On Thursday, 3 January 2019 at 23:54:42 UTC, SrMordred wrote:
> struct _std
> {
> template opDispatch(string moduleName)
> {
> mixin("import opDispatch = std." ~ moduleName ~ ";");
> }
> }
There is nothing that's actually stopping you from just calling
it std.
It will work just as fine.
That way you can end up with
std.stdio.writeln("...");
Instead of:
_std.stdio.writeln("...");
More information about the Digitalmars-d
mailing list