[Issue 8260] * used three or more times on an array inside std.format.formattedRead

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 18 05:45:11 PDT 2012


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-06-18 05:47:29 PDT ---
The bug is in your code.

void main() {
    int[3] row;
    auto text = "10 20 30";
  //formattedRead(text, "%(%d %)", row);   // bad
    formattedRead(text, "%(%d %)", &row);  // OK
}

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