This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Why I love C++ so much.


> 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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]