Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!news.alt.net From: Miles Bader Newsgroups: comp.std.c++ Subject: Re: An hexadecimal digits group separator for long 64bit addresses Date: Sat, 25 Jun 2011 08:50:56 CST Organization: NEC Electronics Lines: 31 Sender: std-cpp-request@vandevoorde.com Approved: stephen.clamage@oracle.com Message-ID: References: <1308849997.2080.3.camel@sara> Content-Type: text/plain To: undisclosed-recipients:; Return-Path: X-Original-Date: Fri, 24 Jun 2011 15:20:11 +0900 X-Submission-Address: std-c++-submit@vandevoorde.com Xref: x330-a1.tempe.blueboxinc.net comp.std.c++:178 Magnus Fromreide writes: >> 0xFFFF58AE3BBE33AC I think it will be much easier to read >> 0xFFFF58AE_3BBE33AC or even 0xFFFF_58AE_3BBE_33AC). > > I think you are to late. > This would clash with user-defined literals, wouldn't it? > > int operator "" _1234 (int n) { return 17; } > > 0x12cd_1234; Hmm, how about using apostrophe ('): 0x12cd'1234 1'234'567 Maybe a little bit less pretty than _, but still pretty good I think... -miles -- Yo mama's so fat when she gets on an elevator it HAS to go down. [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]