|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.bugs - [Issue 3095] New: wc example for D2 doesn't compile
http://d.puremagic.com/issues/show_bug.cgi?id=3095 Summary: wc example for D2 doesn't compile Product: D Version: 2.027 Platform: All URL: http://digitalmars.com/d/2.0/wc.html OS/Version: All Status: NEW Severity: normal Priority: P2 Component: www.digitalmars.com AssignedTo: nobody puremagic.com ReportedBy: daniel.keep+d.puremagic.com gmail.com Attempting to compile the example program given at http://digitalmars.com/d/2.0/wc.html results in the following: irc.d(54): Error: constructor std.stream.BufferedFile.this () does not match parameter types (char[]) irc.d(54): Error: cannot implicitly convert expression (arg) of type char[] to HANDLE irc.d(54): Error: expected 3 function arguments, not 1 This appears to be because the ctor that accepts a filename wants a string, not a char[], but the compiler is trying to match it to the ctor that takes a HANDLE. Replacing all instances of char[] with string appears to fix the problem as well as being idiomatic D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- Jun 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3095 --- Comment #1 from Daniel Keep <daniel.keep+d.puremagic.com gmail.com> 2009-06-26 07:14:41 PDT --- Created an attachment (id=404) --> (http://d.puremagic.com/issues/attachment.cgi?id=404) Patch -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- Jun 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3095 Daniel Keep <daniel.keep+d.puremagic.com gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #404|application/octet-stream |text/plain mime type| | Attachment #404 is|0 |1 patch| | --- Comment #2 from Daniel Keep <daniel.keep+d.puremagic.com gmail.com> 2009-06-26 07:15:11 PDT --- (From update of attachment 404) Fixes issue -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- Jun 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3095 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2009-07-09 02:57:45 PDT --- Fixed dmd 2.031 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- Jul 09 2009
|