comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter Richtmyer" <pmr@efortress.com>
Subject: Ada 0x Wish List
Date: Sun, 11 Feb 2001 22:25:28 -0500
Date: 2001-02-11T22:25:28-05:00	[thread overview]
Message-ID: <RKIh6.3190$j45.247550@e3500-chi1.usenetserver.com> (raw)

Here are a few Ada "improvements" that I would like to see.
First couple are minor. Third is ...?

1) In a Package Spec, it would be nice to be able to declare
variables that are "constants' to other packages. that is, they can
be "read" by other packages, but not written / updated. Code
within the package (and child packages, etc) could update these
variables like any other variables.

e.g.:

   Package A is

       B : constant Integer := 5;   -- normal constant
       C : convar   integer := 8;   -- externally constant, internally
variable
       ...

Note the keyword "convar" is used for lack of a better keyword for now.


2) In a subroutine, would like to be able to declare variables that are
"persistent", like C "static" variables and only used by the one subroutine.
Presently this data must be in the package body (or spec, or some other
package spec), where it is visible and updatable by other routines,
even though it is intended for use by one routine only. (Or is there
another easy way to do this already?)

3) I would like "portable" representation specs. Regardless of the
endian-ness of the machine, would like an option (that is required
to be implemented for all compilers) so we can write rep specs once
and be able to use them on any computer. (Would also like the compilers
to continue to support Ada95 rep specs).

I could think of a number of different ways to specify these, but I am
sure others with compiler-writing experience would have more to say
on what is practical.

So, please go easy on me, but go at it on the ideas....   :-)

For Ada...
Peter





             reply	other threads:[~2001-02-12  3:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-12  3:25 Peter Richtmyer [this message]
2001-02-12  4:22 ` Ada 0x Wish List Jeffrey Carter
2001-02-12  7:23   ` Dale Stanbrough
2001-02-12 13:04     ` Preben Randhol
2001-02-13 16:33     ` Robert Deininger
2001-02-13 18:15       ` Keith Thompson
2001-02-12  7:39 ` Florian Weimer
2001-02-12 13:18   ` Steve Folly
2001-02-12 15:25   ` Arthur Schwarz
2001-02-12 14:29 ` John English
2001-02-13  8:31   ` Dr Adrian Wrigley
2001-02-13 20:46   ` Fraser Wilson
2001-02-13 22:06     ` Larry Hazel
2001-02-13 22:45       ` Fraser Wilson
2001-02-13 23:14         ` Larry Hazel
2001-02-13 23:59           ` David C. Hoos, Sr.
2001-02-14  1:22             ` Larry Hazel
2001-02-13 23:51     ` Keith Thompson
2001-02-14 11:23     ` David C. Hoos, Sr.
2001-02-15 22:01       ` Georg Bauhaus
2001-02-15 22:14         ` Marin David Condic
2001-02-17  8:43     ` Dr Adrian Wrigley
2001-02-12 16:08 ` Steve Folly
2001-02-12 17:53   ` Lao Xiao Hai
2001-02-12 18:22 ` (null)
  -- strict thread matches above, loose matches on Subject: below --
2001-02-15  1:33 Beard, Frank
replies disabled

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