This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
RE: Why I love C++ so much.
- From: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>
- To: "'The Vulgar and Unprofessional Cygwin-Talk List'" <cygwin-talk at cygwin dot com>
- Date: Wed, 20 Feb 2008 19:18:19 -0600
- Subject: RE: Why I love C++ so much.
- References: <00b001c873fd$58137750$2e08a8c0@CAM.ARTIMI.COM>
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
> From: Dave Korn
>
>
> Because writing
>
> hex << setw (8) << setfill ('0') << ((uintptr_t)(x)) << dec
> << setfill (' ')
>
> is just soooooo much easier and more self-consistent and less
> typing than
>
> "%08x", x
>
>
>
> <grrrspit>
>
Ummm... Kornsy? All the *printf()'s are available for your use in every
standard C++ library I've ever come across, if you really want to risk the
security and portability problems.
Or are you telling us that you have a C compiler that magically compiles the
bare symbols:
"%08x", x
into some sort of string and/or output? That might be cool, but I think
that's Perl ;-).
--
Gary R. Van Sickle