[Issue 2398] writef("%x") for a pointer is always uppercase

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 14 04:16:20 PDT 2009


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


Gide Nwawudu <gide at nwawudu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, spec, wrong-code
                 CC|                            |gide at nwawudu.com




--- Comment #1 from Gide Nwawudu <gide at nwawudu.com>  2009-05-14 04:16:19 PDT ---
Maybe the current functionality exists because pointers are normally output in
uppercase.
    writefln("%#x", cast(uint*)0xabcd); // -> 0xABCD
    writefln("%#X", cast(uint*)0xabcd); // -> 0XABCD

%x as lowercase and %X as uppercase makes more sense.

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