comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@blueyonder.co.uk>
Subject: Re: Ada.Streams.Stream_IO.File_Type
Date: Thu, 17 Jul 2003 17:01:33 +0100
Date: 2003-07-17T17:01:33+01:00	[thread overview]
Message-ID: <bf6h5p$bgjhu$1@ID-25716.news.uni-berlin.de> (raw)
In-Reply-To: RfZQa.71833$N7.8631@sccrnsc03

<tmoran@acm.org> wrote in message news:RfZQa.71833$N7.8631@sccrnsc03...

[of the type Ada.Streams.Stream_IO.File_Type]
> Why is this not a descendant of
> Ada.Finalization.Limited_Controlled?

The visible declaration in the package Ada.Streams.Stream_IO is:

   type File_Type is limited private;

This means that the type is not visibly a descendant of Limited_Controlled,
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.

--
Nick Roberts
Jabber: debater@charente.de [ICQ: 159718630]






  parent reply	other threads:[~2003-07-17 16:01 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 ` Nick Roberts [this message]
2003-07-20 11:27   ` Ada.Streams.Stream_IO.File_Type Mário Amado Alves
2003-07-20 14:25     ` Ada.Streams.Stream_IO.File_Type Robert I. Eachus
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