Bug 12505 – Null pointers are pretty-printed even when hex output is requested
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-01T21:48:00Z
Last change time
2014-04-03T05:03:23Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
yebblies
Comments
Comment #0 by yebblies — 2014-04-01T21:48:37Z
import std.stdio;
void main()
{
void* p = null;
writefln("%08X", p);
}
prints:
null
when execting:
00000000
I found this in some old code that used to work.