Behaviour of %08X format specifiers on addresses

Graham grahamc001uk at yahoo.co.uk
Sat Sep 22 05:37:40 PDT 2007


I realize that the documentation says that the argument should be an integer type when using %X etc. format specifiers, so it works as I expected with

writefln("p = %08X", cast(int)p);

etc. 

But even so accepting a non-integer type and then supposing small values are only 16 bits seems a bit odd.


More information about the Digitalmars-d-learn mailing list