[Issue 6834] std.stdio conflicts with core.stdc.stdio

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 19 07:42:17 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6834


SomeDude <lovelydear at mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear at mailmetrash.com


--- Comment #3 from SomeDude <lovelydear at mailmetrash.com> 2012-04-19 07:43:11 PDT ---
This works.

import std.stdio;
import std.c.stdio;

void foo() {
  File f = std.stdio.stdin;
  int c = std.c.stdio.getc(f.getFP());
}

as well as that:

import std.stdio:stdin, File;
import std.c.stdio:getc;

void foo() {
  File f = stdin;
  int c = getc(f.getFP());
}

So this is not a bug, it's a case of not understanding the use of packages.

I think it should be closed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list