Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26524
| Date | 2013-11-17 08:05 -0800 |
|---|---|
| From | Patricia Shanahan <pats@acm.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Possible loss of precision |
| References | (1 earlier) <87txfe22o1.fsf@golem.phantasia.org> <kkla89tv4vb3c60ao7qkj2hr3kd0ims4gc@4ax.com> <87txfded5c.fsf@golem.phantasia.org> <1cydnYUCtYikZBvPnZ2dnUVZ_umdnZ2d@earthlink.com> <878uwnw6t1.fsf@golem.phantasia.org> |
| Message-ID | <8pqdnQaCOuvddBXPnZ2dnUVZ_oSdnZ2d@earthlink.com> (permalink) |
On 11/17/2013 4:28 AM, Michael Jung wrote: > Patricia Shanahan <pats@acm.org> writes: ... >> On the other hand, without the special narrowing rule for >> initializers, there would be no cast-free way of initializing a byte >> with the value 2. > > They could have spent a suffix "B/b" (for non-hex integer literals) as > with "l/L". Why non-hex? You would still need something like the current system for hex initialization of a byte. The would have needed to do the the same for short, [-32768, 32767], and for numeric initializers for char, [0, 65535]. Patricia
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Possible loss of precision Michael Jung <miju@golem.phantasia.org> - 2013-11-14 20:39 +0100
Re: Possible loss of precision Gene Wirchenko <genew@telus.net> - 2013-11-14 15:03 -0800
Re: Possible loss of precision Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-11-14 18:31 -0500
Re: Possible loss of precision Joerg Meier <joergmmeier@arcor.de> - 2013-11-15 00:55 +0100
Re: Possible loss of precision Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-11-14 20:19 -0500
Re: Possible loss of precision taqmcg@gmail.com - 2013-11-15 07:01 -0800
Re: Possible loss of precision Martin Gregorie <martin@address-in-sig.invalid> - 2013-11-15 21:36 +0000
Re: Possible loss of precision Michael Jung <miju@golem.phantasia.org> - 2013-11-15 19:24 +0100
Re: Possible loss of precision Patricia Shanahan <pats@acm.org> - 2013-11-15 20:48 -0800
Re: Possible loss of precision Michael Jung <miju@golem.phantasia.org> - 2013-11-17 13:28 +0100
Re: Possible loss of precision Patricia Shanahan <pats@acm.org> - 2013-11-17 08:05 -0800
csiph-web