Thread name conflict
Dmitry Olshansky via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 5 04:55:13 PDT 2014
05-May-2014 12:03, John Chapman пишет:
> Importing both core.thread and std.regex results in a conflict as both
> define a Thread type.
>
> Perhaps the regex module's author assumed there'd be no clash since it's
> a template - Thread(DataIndex). Should I file a bug suggesting a name
> change? Or maybe D ought to allow both parameterised and normal types to
> have the same name - C# for example allows it.
Neat. I couldn't make a better case for D to finally fix visibility of
private symbols.
Why the heck should internal symbols conflict with public from other
modules? No idea.
Seems like turning std.regex into package will fix this one though, as I
could put private things into std.regex.dont_touch_it_pretty_please.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list