comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <nono@celes.unizar.es>
Subject: Re: Persistence of limited tagged types
Date: Tue, 8 Apr 2003 15:41:48 +0200
Date: 2003-04-08T15:41:48+02:00	[thread overview]
Message-ID: <MPG.18fcf0084a2a11429896dd@News.CIS.DFN.DE> (raw)
In-Reply-To: 3E92C6F9.70303@psu.edu

Robert Spooner dice...
> 
> Stephen Leake wrote:
> > Robert Spooner <rls19@psu.edu> writes:
> > 
> > 
> >>I think that if you use 'output to put the object onto the disk, it
> >>will put the external representation of the tag out with it. Then if
> >>you use 'imput to read it back in as an object of type Object'class
> >>you will get what you're looking for.
> > 
> > 
> > That is certainly true. The trick is to get an object of type
> > Object'class; it's an unconstrained type, so you can't just do:
> > 
> > An_Object : Object'class;
> > 
> > In practice, you need to know the concrete object type _before_ you
> > call 'input, so you can allocate (or declare) an object of that type.
> > That means some representation of the tag must be stored in the
> > external file separately from the object, so you can read it first.
> > 
> 
> The input attribute is a function, so you can initialize an object of 
> the class using it without a priori knowledge of the type.

Yes, the whole matter arises because we are discussing limited types 
that can't be created that way.

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



      reply	other threads:[~2003-04-08 13:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 12:47 Persistence of limited tagged types Jano
2003-04-07 14:47 ` Nick Roberts
2003-04-09 10:05   ` Nick Roberts
2003-04-10  3:32     ` tmoran
2003-04-09 23:09   ` Matthew Heaney
2003-04-10 14:40     ` Nick Roberts
2003-04-10 23:37       ` Robert A Duff
2003-04-11 16:39         ` Nick Roberts
2003-04-10 18:49     ` Randy Brukardt
2003-04-10  1:12   ` Matthew Heaney
2003-04-07 18:11 ` Stephen Leake
2003-04-07 19:07   ` Hyman Rosen
2003-04-07 22:09     ` Jano
2003-04-08 13:58       ` Matthew Heaney
2003-04-10 11:41         ` Julio Cano
2003-04-10 19:14           ` Jano
2003-04-11 12:54             ` Julio Cano
2003-04-07 20:17   ` Robert Spooner
2003-04-07 21:14     ` Stephen Leake
2003-04-08 12:56       ` Robert Spooner
2003-04-08 13:41         ` Jano [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