← Back to index
|
Original Bugzilla link
Bug 5825 – write is calling a deprecated function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-04-09T11:10:00Z
Last change time
2011-09-07T22:42:54Z
Keywords
patch
Assigned to
nobody
Creator
andrej.mitrovich
See also
http://d.puremagic.com/issues/show_bug.cgi?id=5772
Comments
Comment #0
by andrej.mitrovich — 2011-04-09T11:10:50Z
import std.stdio; void main() { typedef void* HANDLE; HANDLE hnd; write(hnd); } D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(1599): Error: function std.format.formatValue!(LockingTextWriter,HANDLE,immutable(char)).formatValue is deprecated D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(308): Error: template instance std.format.formatGeneric!(LockingTextWriter,HANDLE,immutable(char)) error instantiating D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(660): instantiated from here: formattedWrite!(LockingTextWriter,immutable(char),HANDLE) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(1433): instantiated from here: write!(HANDLE) test2.d(6): instantiated from here: write!(HANDLE) This will compile with the -d switch.
Comment #1
by yebblies — 2011-08-29T01:37:09Z
*** Issue 5772 has been marked as a duplicate of this issue. ***
Comment #2
by yebblies — 2011-09-07T22:42:54Z
https://github.com/D-Programming-Language/phobos/pull/225
https://github.com/D-Programming-Language/phobos/commit/711f7e2e84d7cbb7a643db70f041868f555d5300