[Issue 12398] Selective imports no longer act as static imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 18 04:22:47 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12398
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-18 04:22:45 PDT ---
(In reply to comment #0)
> ////////// test.d /////////
> import std.stream : Stream;
>
> void main()
> {
> std.stream.File f;
> }
> ///////////////////////////
>
> I don't see any purpose for this breakage.
According to this[1] comment the above should work.
[1] https://d.puremagic.com/issues/show_bug.cgi?id=12359#c0
Comment:
-----
import std.ascii : isDigit; // Don't create alias silently
bool isDigit(char c) { return true; }
alias isDigit = std.ascii.isDigit; // explicitly merge overloads
void main() {
dchar d = 'a';
isDigit(d); // matches to std.ascii.isDiigt
}
-----
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list