comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Main subprogram at library level (was: library level required or not?)
Date: Tue, 02 Mar 2004 02:31:01 GMT
Date: 2004-03-02T02:31:01+00:00	[thread overview]
Message-ID: <FlS0c.14848$yZ1.11477@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <1047ia2f8afucd9@corp.supernews.com>

Randy Brukardt wrote:

> *Types* derived from Controlled have to be at library-level.

I have just had an idea. Suppose we had a standard pragma that declared 
that a library-level subprogram was a main subprogram. The subprogram 
could then only be a main subprogram and could not be called by itself 
or another subprogram, only by the environment task.

The declarative region of such a subprogram would then be considered to 
be at the library level, allowing controlled types to be declared there.

This would make Ada a little easier for newcomers without impacting 
existing code, which would not have the pragma and hence would not allow 
controlled types there.

Has anything like this been proposed before? Any thoughts as to whether 
it is likely to fly if submitted as an AI?

-- 
Jeff Carter
"Your mother was a hamster and your father smelt of elderberries."
Monty Python & the Holy Grail
06




  parent reply	other threads:[~2004-03-02  2:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 17:17 library level required or not? Marius Amado Alves
2004-03-01 23:37 ` Randy Brukardt
2004-03-02  0:21   ` Marius Amado Alves
2004-03-02  2:31   ` Jeffrey Carter [this message]
2004-03-02 22:37     ` Main subprogram at library level (was: library level required or not?) Randy Brukardt
2004-03-03  1:21       ` Main subprogram at library level Jeffrey Carter
2004-03-03  7:54         ` Dale Stanbrough
2004-03-03 18:21         ` Randy Brukardt
2004-03-04  0:37           ` Jeffrey Carter
replies disabled

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