From: Simon Wright <simon@pushface.org>
Subject: Re: Wikibook on Ada Programming - Object Orientation
Date: Thu, 08 Jul 2010 18:14:45 +0100
Date: 2010-07-08T18:14:45+01:00 [thread overview]
Message-ID: <m2hbk9x5dm.fsf@pushface.org> (raw)
In-Reply-To: 2dcc40df-72f1-443c-9afd-4415af4e63b9@k39g2000yqb.googlegroups.com
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> Right, I'm curious. I re-read sections on controlled types and mixin
> inheritance in John Barnes' book but he leaves this entire problem as
> an exercise to the reader (specifically, exercise 19.3). This seems
> too complicated for a beginner.
I've checked the answers, John was solving a simpler problem (to keep
track of how many instances of a type have been created, and to give
each a unique ID). Although he says that "[having] a component of a
controlled type [...] will give the effect of controlling objects of
[the containing type]" this won't result in the ability to fully support
initialize/adjust/finalize.
next prev parent reply other threads:[~2010-07-08 17:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 9:34 Wikibook on Ada Programming - Object Orientation AdaMagica
2010-07-08 16:07 ` Ludovic Brenta
2010-07-08 17:14 ` Simon Wright [this message]
2010-07-08 18:09 ` AdaMagica
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox