comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Rep specs
Date: 1999/05/31
Date: 1999-05-31T00:00:00+00:00	[thread overview]
Message-ID: <7iuqvu$lpp$1@nnrp1.deja.com> (raw)
In-Reply-To: tqx43.5040$xF2.70329@news1.rdc2.tx.home.com

In article <tqx43.5040$xF2.70329@news1.rdc2.tx.home.com>,
  "Eddy Raineri" <eraineri@axiom-tx.com> wrote:
> Hello,
> I have a question regarding rep specs.  There is an individual
I work with
> that has stated that rep specs are not required by the LRM and
as I qoute
> "DO NOT USE ADA REP SPECS except in the simplest of cases, or
unless you are
> sure that the code will NEVER be ported to a different machine
or compiler
> (hah!)"
>

Rep specs (more properly rep clauses) are not required unless
you implement the Systems Programming Annex. That makes sense.
For the type of thing that needs rep clauses, that annex had
better be implemented. In fact virtually all compilers support
this on virtually all machines. An exception might be a compiler
targetting the JVM, where systems programming is not really
practical in any case.

However, the "individual you work with" is QUITE wrong in
reocmmending against using rep clauses completely. As you
point out in your examples, careful use of rep clauses (as
well as address attributes etc) can greatly AID in portability.
Forbidding these features may very well cause you to have to
resort to low level do-it-your-self stuff which will be much
less likely to be portable.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  reply	other threads:[~1999-05-31  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-31  0:00 Rep specs Eddy Raineri
1999-05-31  0:00 ` Robert Dewar [this message]
1999-06-01  0:00   ` czgrr
1999-06-03  0:00   ` Marin David Condic
1999-06-01  0:00 ` Steve Quinlan
1999-06-02  0:00   ` Robert Dewar
1999-06-03  0:00 ` Samuel T. Harris
1999-06-04  0:00   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-10-07  0:00 Rep Specs Doug Shipler
1996-10-08  0:00 ` Stephen Leake
1996-10-13  0:00   ` Robert Dewar
replies disabled

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