March 12, 2009 [Issue 2731] New: Errors in associative array example | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2731 Summary: Errors in associative array example Product: D Version: 1.041 Platform: All URL: http://www.digitalmars.com/d/2.0/arrays.html#associative OS/Version: All Status: NEW Keywords: spec Severity: minor Priority: P3 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: gide@nwawudu.com The associative array example given in the URL above fails to compile in D2, because the std.file.read expects an immutable file name, to fix change: int main (char[][] args) - to - int main (string[] args) Also, on line 60 has writef(... %8ld%8ld%8ld ... ), which are not valid formatting strings. writef(... %8d%8d%8d ... ) fixes the issue, this applies to D1 and D2. http://www.digitalmars.com/d/1.0/arrays.html#associative http://www.digitalmars.com/d/2.0/arrays.html#associative -- |
April 01, 2009 [Issue 2731] Errors in associative array example | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2731 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2009-04-01 13:48 ------- Fixed DMD 1.042 and 2.027 -- |
Copyright © 1999-2021 by the D Language Foundation