Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Miles Bader <miles@gnu.org> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: An hexadecimal digits group separator for long 64bit addresses |
| Date | 2011-06-25 08:50 -0600 |
| Organization | NEC Electronics |
| Message-ID | <buo1uyju4x0.fsf@dhlpc061.dev.necel.com> (permalink) |
| References | <1308849997.2080.3.camel@sara> |
Magnus Fromreide <cscpp@magfr.users.lysator.liu.se> 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 ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar
Re: An hexadecimal digits group separator for long 64bit addresses Magnus Fromreide <cscpp@magfr.users.lysator.liu.se> - 2011-06-23 19:32 -0600
Re: An hexadecimal digits group separator for long 64bit addresses ThosRTanner <ttanner2@bloomberg.net> - 2011-06-25 08:51 -0600
Re: An hexadecimal digits group separator for long 64bit addresses Miles Bader <miles@gnu.org> - 2011-06-26 20:09 -0600
Re: An hexadecimal digits group separator for long 64bit addresses Miles Bader <miles@gnu.org> - 2011-06-25 08:50 -0600
csiph-web