comp.lang.ada
 help / color / mirror / Atom feed
From: arny@wayback.UUCP (Arny B. Engelson)
Subject: Re: pragmas, validation and garbage collection
Date: Fri, 3-Oct-86 10:33:07 EDT	[thread overview]
Date: Fri Oct  3 10:33:07 1986
Message-ID: <981@wayback.UUCP> (raw)
In-Reply-To: 980@wayback.UUCP


   In article 1080 I asked a question about validation, pragma implementation,
and garbage collection.  I was contacted personally by someone who was
involved in the development of the compiler (and the storage manager itself),
and thought I'd summarize the info here.

   It seems the documentation I had on the compiler was DRAFT documentation,
which as we all know eventually bears no resemblance to the real product.
Although the documentation speaks as if the compiler already has an
automatic garbage collector, it is a feature slated for later development.
When (and if) this feature is implemented, I am assured that some form of
control over its operation (probably via a library package) will be provided.
Until then, I just deallocate everything manually (Unchecked_Deallocation).
   As for validating without implementing pragma Controlled, the compiler does
recognize it, but issues a "pragma ignored" message.  Supposedly, this is
"implementing" it, whereas barfing on the pragma during compilation is
unacceptable.
   (Personally, I feel all compilers should actually perform the desired task
specified by the pragma, or at least provide alternate means of control (such
as the previously mentioned library package). )

   A useful suggestion this person made to me was to convert the different
access types all to a single access type for storage in the queue, instead
of converting them to integer values.  This way I am assured the memory won't
be reclaimed and I am still storing a pointer type.  Although I haven't tested
this yet, it seems like a good idea.

   Finally, for those of you who believe bypassing Ada's strong typing is a
cardinal sin:  I don't like the idea either, but sometimes it IS a useful
thing to do.


Arny Engelson
...bonnie!wayback!arny

      reply	other threads:[~1986-10-03 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-10-02 13:37 pragmas, validation and garbage collection Arny B. Engelson
1986-10-03 14:33 ` Arny B. Engelson [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