[Issue 7241] New: std.format can't read into array of dchar

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 6 23:30:38 PST 2012


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

           Summary: std.format can't read into array of dchar
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: jlquinn at optonline.net


--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2012-01-06 23:30:36 PST ---
Compiling the following code gives:

import std.stdio;
void foo() {
  File f;
  dchar[1] dc;
  f.readf("%s", dc);
}

dmd -c junk2.d
/usr/include/d/dmd/phobos/std/format.d(439): Error: using * on an array is
deprecated; use *(_param_2).ptr instead

This worked in dmd 2.056.  My reading of the docs says it should work :-)

-- 
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