[Issue 2398] writef("%x") for a pointer is always uppercase
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 14 04:40:58 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2398
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2009-05-14 04:40:57 PDT ---
(In reply to comment #1)
> 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.
I think it happened because uppercase is a sensible default for pointers (eg,
if printed with %s). BUT, %x should override that default. It's a simple bug.
--
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