Thread overview
[Issue 7241] New: std.format can't read into array of dchar
Jan 07, 2012
Jerry Quinn
Jan 29, 2012
Kenji Hara
Jan 31, 2012
Walter Bright
January 07, 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@puremagic.com
        ReportedBy: jlquinn@optonline.net


--- Comment #0 from Jerry Quinn <jlquinn@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: -------
January 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7241


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


--- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2012-01-24 09:19:44 PST ---
The fixed test code:

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

also doesn't work :o). I'll look into this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7241


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-29 04:43:41 PST ---
https://github.com/D-Programming-Language/phobos/pull/409

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7241



--- Comment #3 from github-bugzilla@puremagic.com 2012-01-29 11:07:36 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/526469a0fcb9d6c3794cdf51ed1c1b913d20b8ac Issue 7241 - std.format can't read into array of dchar

https://github.com/D-Programming-Language/phobos/commit/82402c5195e221e20a221f5b981f50e282681bbf Merge pull request #409 from 9rnsr/fix7241

Issue 7241 - std.format can't read into array of dchar

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7241


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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