comp.lang.ada
 help / color / mirror / Atom feed
From: agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.ans.net!newsgate. watson.ibm.com!yktnews.watson.ibm.com!ncohen@ucbvax.Berkeley.EDU  (Norman H. Co
Subject: Re: Underscore ("_") in numeric literals
Date: 4 Aug 93 14:43:29 GMT	[thread overview]
Message-ID: <CB8owH.qzo@yktnews.watson.ibm.com> (raw)

In article <23622cINN1er@umbc4.umbc.edu>, berman@umbc.edu (Mike Berman) writes:
 
|> dag@control.lth.se (Dag Bruck) writes: 
|>
|> | I have received about 20 replies, all in favour.  Is there nobody in
|> | the Ada community that thinks that it is a useless feature?  It seems
|> | to rarely used for the simple reason that people rarely type big
|> | numbers.
|>
|> The use of embedded underscores in numeric literals is probably
|> statistically small, but the aid to understanding is invaluable.
   ...

Underscores are especially helpful in based constants, like
16#7fff_ffff# or 2#0010_1100_0001_0000# (especially for specifiying the
value to be placed in a control register in which each bit has a special
purpose).

--
Norman H. Cohen    ncohen@watson.ibm.com

             reply	other threads:[~1993-08-04 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-04 14:43 agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.ans.net!newsgate.watson.ibm.com!yktnews.watson.ibm.com!ncohen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-04 16:04 Underscore ("_") in numeric literals cis.ohio-state.edu!math.ohio-state.edu!sdd.hp.com!saimiri.primate.wisc.ed
1993-07-28 14:22 Mike Berman
1993-07-28  5:43 Dag Bruck
1993-07-28  5:41 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!libra
1993-07-27 20:17 Robert Dewar
1993-07-27 15:33 Charles H. Sampson
1993-07-23 18:32 Mikey
1993-07-22 11:24 Dag Bruck
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox