www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5825] New: write is calling a deprecated function

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5825

           Summary: write is calling a deprecated function
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



11:10:50 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 09 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5825


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
           Platform|Other                       |All
         Resolution|                            |FIXED
         OS/Version|Windows                     |All



https://github.com/D-Programming-Language/phobos/pull/225

https://github.com/D-Programming-Language/phobos/commit/711f7e2e84d7cbb7a643db70f041868f555d5300

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