comp.lang.ada
 help / color / mirror / Atom feed
From: Dr Adrian Wrigley <amtw@linuxchip.demon.co.uk>
Subject: Re: Ada 0y wish list: "with private"
Date: Tue, 13 Feb 2001 00:48:16 -0800
Date: 2001-02-13T00:48:16-08:00	[thread overview]
Message-ID: <3A88F4D0.3821CC6D@linuxchip.demon.co.uk> (raw)
In-Reply-To: 968p1e$8m7$1@s1.read.news.oleane.net

Thierry Lelegard wrote:
> 
> Recently, several wishlist items for Ada 0y were posted in c.l.a.
> Like many old Ada users, I have a couple of them. I would like to
> propose one for discussion: a "with private" extension.

I'd like something a bit similar. "separate" for the private part.
This would allow the private part to be (for example) in a separate
file.  It could have its own context clause, thus obviating the
need for the "with private" extension.

I think the separation of the private part would make it easier
to separate the specification from the implementation properly.
For example, you usually need to edit the specification when
writing the implementation.  Project architects could forbid
this (keep the spec read-only) if the private was separate.

I seem to remember hearing this was discussed in the early
design of Ada, and abandoned because of the extra burden imposed.
It would obviate the "private   ... --  not specified by the language"
annotations in the ARM.

Perhaps the obvious syntax is "private is separate;" in the spec
where the full private part would have been.
--
Adrian Wrigley



  parent reply	other threads:[~2001-02-13  8:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-12 13:41 Ada 0y wish list: "with private" Thierry Lelegard
2001-02-13  0:10 ` Keith Thompson
2001-02-13  0:13 ` Jeff Creem
2001-02-13  6:37   ` Dale Stanbrough
2001-02-13 12:01     ` Jeff Creem
2001-02-13  8:48 ` Dr Adrian Wrigley [this message]
2001-02-13  8:56 ` Michel Gauthier
2001-02-13 16:31 ` Ehud Lamm
  -- strict thread matches above, loose matches on Subject: below --
2001-02-15  1:04 Beard, Frank
2001-02-15  4:18 ` Jeffrey Carter
2001-02-15  4:53 Christoph Grein
2001-02-15 19:16 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