From: Ted Dennison <dennison@telepath.com>
Subject: Re: Unconstrained type Unchecked_Deallocation
Date: 2000/03/06
Date: 2000-03-06T00:00:00+00:00 [thread overview]
Message-ID: <8a1f4s$ho2$1@nnrp1.deja.com> (raw)
In-Reply-To: 38C3D82F.C9F81832@bton.ac.uk
In article <38C3D82F.C9F81832@bton.ac.uk>,
John English <je@bton.ac.uk> wrote:
> Ted Dennison wrote:
> > That ought to work just fine. However, I don't see the benifit of
> > doing this over just naming the instantiation of
> > Unchecked_Deallocation "Free" in the first place. They have the same
> > parameter profile and the same mission.
>
> Possibly to avoid creating a dependence between the package spec and
> Unchecked_Deallocation? Might make it easier to move to a different
> allocation/deallocation regime at a later date, e.g. when porting...
Assuming that in real life that code is split between the spec and
body? That's a good possiblity.
The best reason I could think of was the possibility that this is just
an example of a routine that in real life also needs to contain some
other cleanup code. But I find often with beginners they just don't know
any better, so its best to point out inefficencies and possible
alternate techniques.
--
T.E.D.
http://www.telepath.com/~dennison/Ted/TED.html
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~2000-03-06 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-05 0:00 Unconstrained type Unchecked_Deallocation Andy Askey
2000-03-06 0:00 ` Ted Dennison
2000-03-06 0:00 ` tmoran
2000-03-06 0:00 ` John English
2000-03-06 0:00 ` Ted Dennison [this message]
[not found] ` <38C566CE.6283C0AD@rational.com>
2000-03-08 0:00 ` Robert Dewar
2000-03-08 0:00 ` Larry Kilgallen
2000-04-05 0:00 ` Robert I. Eachus
2000-04-06 0:00 ` Robert Dewar
2000-04-09 0:00 ` Robert I. Eachus
2000-04-09 0:00 ` Robert Dewar
2000-04-12 0:00 ` Robert I. Eachus
2000-04-06 0:00 ` P. S. Norby
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox