comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Ada.Streams.Stream_IO.File_Type
Date: Sun, 20 Jul 2003 14:25:13 GMT
Date: 2003-07-20T14:25:13+00:00	[thread overview]
Message-ID: <3F1AA639.5070200@attbi.com> (raw)
In-Reply-To: 4a4de33a.0307200327.3ca6705@posting.google.com

M�rio Amado Alves wrote:
>>...
>>but it could be implemented by putting:
>>
>>   type File_Type is new Ada.Finalization.Limited_Controlled with private;
>>
>>in the private part of package Ada.Streams.Stream_IO. I'm not quite sure if
>>such an implementation would be criticised on the grounds that objects of
>>File_Type could not then be declared other than at library level.

> Indeed it would be criticized by the many of us that find this Ada feature annoying.

So annoying that if there was such a requirement, I am sure that the ARG 
would immediately eliminate it!

I think that Nick Roberts was thinking of the rule that prevents 
creating a TYPE derived from Ada.Finalization.Limited_Controlled other 
than at the library level from having a record extension RM 3.9.1(3) and 
the note at RM 3.9.1(7).  I would like to loosen that up some in Ada 0Y 
to allow derived types of the form:

     type New_T is new tagged T;

in some nested contexts.  But it is probably not a high priority 
extension.  (Note that the declaration above is not currently 
syntactically legal.)  If it were added, though, the key would be 
insuring that there was no distributed overhead.  That's the hard part.

-- 

                                                        Robert I. Eachus

�In an ally, considerations of house, clan, planet, race are 
insignificant beside two prime questions, which are: 1. Can he shoot? 2. 
Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and 
Steve Miller.




  reply	other threads:[~2003-07-20 14:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 20:13 Ada.Streams.Stream_IO.File_Type tmoran
2003-07-17 15:10 ` Ada.Streams.Stream_IO.File_Type Craig Carey
2003-07-17 16:42   ` Ada.Streams.Stream_IO.File_Type Nick Roberts
2003-07-18 17:34     ` Ada.Streams.Stream_IO.File_Type Matthew Heaney
2003-07-18 18:25       ` Ada.Streams.Stream_IO.File_Type David C. Hoos
2003-07-17 16:01 ` Ada.Streams.Stream_IO.File_Type Nick Roberts
2003-07-20 11:27   ` Ada.Streams.Stream_IO.File_Type Mário Amado Alves
2003-07-20 14:25     ` Robert I. Eachus [this message]
2003-07-21  4:03       ` Ada.Streams.Stream_IO.File_Type Nick Roberts
2003-07-21  9:47         ` Ada.Streams.Stream_IO.File_Type Robert I. Eachus
2003-07-18  7:46 ` Ada.Streams.Stream_IO.File_Type Dmitry A. Kazakov
replies disabled

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