comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Preferred method for bringing in operators
Date: Thu, 5 Jul 2001 10:04:45 -0400
Date: 2001-07-05T14:04:48+00:00	[thread overview]
Message-ID: <9i1s60$3o8$1@nh.pace.co.uk> (raw)
In-Reply-To: Ibs07.149836$%i7.100699762@news1.rdc1.sfba.home.com

I've got a couple of cases where attempting to read or write tagged records
from/to a stream file ends up raising Program_Error if the tagged types are
derived from Ada.Finalization.Controlled. If you change the code to *not*
derive from Controlled, it works fine. The examples that illustrate this are
a bit long and hard to cut down to manageable size. IIRC, I reported at
least one instance of it to ACT, so maybe they looked into it & fixed it.
I'm wondering if maybe similar problems exist elsewhere. I'd kind of like to
test the code I've got that does this against a different compiler to gain
some insight into its correctness or possibly find alternative ways of
getting the job done. Its a kind of a tough spot when dealing with data
structures where you want to go "I'd like to save this to a stream file
*and* I'd like to control what happens to it on assignment" and have to make
a choice between one or the other.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


<tmoran@acm.org> wrote in message
news:Ibs07.149836$%i7.100699762@news1.rdc1.sfba.home.com...
>   Crash how?  I haven't noticed any problem (yet) - what should be
> avoided?





      reply	other threads:[~2001-07-05 14:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-03 15:16 Preferred method for bringing in operators Marin David Condic
2001-07-03 17:49 ` Stephen Leake
2001-07-03 19:04   ` Marin David Condic
2001-07-03 20:21     ` Stephen Leake
2001-07-03 23:04     ` tmoran
2001-07-05 14:04       ` Marin David Condic [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