comp.lang.ada
 help / color / mirror / Atom feed
From: micronian2@gmail.com
Subject: Re: Problem using Ada.Text_IO.Modular_IO
Date: Tue, 15 Jul 2008 23:28:28 -0700 (PDT)
Date: 2008-07-15T23:28:28-07:00	[thread overview]
Message-ID: <71761a97-07c0-4d53-a7f9-562b7ac36c97@z72g2000hsb.googlegroups.com> (raw)
In-Reply-To: 487b8c3b$0$7543$9b4e6d93@newsspool1.arcor-online.net

On Jul 14, 10:26 am, Georg Bauhaus <rm.dash-bauh...@futureapps.de>
wrote:
> microni...@gmail.com schrieb:
>
> > In the context of using types such as Unsigned_N from Interfaces, what
> > if you needed the bit shifting operations?
>
> What if...  Do you have some convincing examples?

Good point. After reading this, I realized that I usually needed these
type of operations to manipulate packed data when I wrote in a
language such as C. With Ada I normally can use rep specs and have the
compiler generate the necessary bit shifting operations automatically.
In addition, with Ada2005 now requiring support for non-default
Bit_Order settings, rep specs are even more portable :). Now if only
more Ada compilers were supporting Ada2005. GNAT "seems" like the only
one that is continuing to make progress these days :(.

>
> A special algorithm is probably not a convincing example,
> even when admirable, or worth millions, because special
> algorithms typically require special programming efforts.
> For features to be of the "general purpose" flavor though,
> i.e. for them to be provided by the language, there should
> be a general need, not a nice, special one.

Well, there must have been enough compelling reason/need to include
the operations for Unsigned_N types in the first place.

--Micronian Coder

>
> --
> Georg Bauhaus
> Y A Time Drain  http://www.9toX.de




      reply	other threads:[~2008-07-16  6:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 16:52 Problem using Ada.Text_IO.Modular_IO jujosei
2008-07-09 19:03 ` Anh Vo
2008-07-09 19:22   ` Adam Beneschan
2008-07-09 21:50 ` Adam Beneschan
2008-07-10 15:00   ` jujosei
2008-07-10  0:48 ` anon
2008-07-10  1:52   ` Adam Beneschan
2008-07-10  7:25     ` anon
2008-07-10 14:59       ` Adam Beneschan
2008-07-11  0:34         ` anon
2008-07-11  9:49           ` Georg Bauhaus
2008-07-11 10:05             ` christoph.grein
2008-07-11 13:21               ` John McCormick
2008-07-11 12:16             ` anon
2008-07-11 13:26               ` petter_fryklund
2008-07-11 21:10                 ` anon
2008-07-12 10:06                   ` Georg Bauhaus
2008-07-13  0:51                     ` anon
2008-07-13 16:03                     ` Georg Bauhaus
2008-07-14  2:03                       ` anon
2008-07-14 13:12                         ` Georg Bauhaus
2008-07-16  6:16                           ` micronian2
2008-07-16  7:47                             ` anon
2008-07-17 16:33                               ` micronian2
2008-07-14 16:34                       ` micronian2
2008-07-14 17:26                         ` Georg Bauhaus
2008-07-16  6:28                           ` micronian2 [this message]
replies disabled

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