public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
From: "Gary R. Van Sickle" <g.r.vansickle@worldnet.att.net>
To: "'The Vulgar and Unprofessional Cygwin-Talk List'"
	<cygwin-talk@cygwin.com>
Subject: RE: Why I love C++ so much.
Date: Thu, 21 Feb 2008 01:20:00 -0000	[thread overview]
Message-ID: <000e01c87427$a4e4be20$020aa8c0@DFW5RB41> (raw)
In-Reply-To: <00b001c873fd$58137750$2e08a8c0@CAM.ARTIMI.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
 

  parent reply	other threads:[~2008-02-21  1:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 20:15 Dave Korn
2008-02-20 20:52 ` Brian Dessent
2008-02-20 21:45   ` Dave Korn
2008-02-21  1:20 ` Gary R. Van Sickle [this message]
2008-02-21 10:10   ` Dave Korn
2008-02-21 12:10     ` Warren Young
2008-02-21  6:32 ` Václav Haisman
2008-02-21 10:28   ` Corinna Vinschen
2008-02-21 12:27     ` Warren Young
2008-02-21 13:49       ` Corinna Vinschen
2008-02-22  8:35         ` Danilo Turina
2008-02-22 16:14           ` Igor Peshansky
2008-02-22 16:20             ` Dave Korn
2008-02-22 16:33               ` Igor Peshansky
2008-02-22 16:39                 ` Dave Korn
2008-02-22 17:04                   ` Dave Korn
2008-02-22  9:11         ` Warren Young
2008-02-22  9:47           ` Michael Schaap
2008-02-22 13:05             ` Warren Young
2008-02-22 16:16             ` Igor Peshansky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000e01c87427$a4e4be20$020aa8c0@DFW5RB41' \
    --to=g.r.vansickle@worldnet.att.net \
    --cc=cygwin-talk@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).