From: rwilson007007@my-deja.com
Subject: Re: Constructors/Destructors in Ada95
Date: 2000/10/22
Date: 2000-10-22T00:00:00+00:00 [thread overview]
Message-ID: <8svc01$c75$1@nnrp1.deja.com> (raw)
In-Reply-To: 39EF5431.BF4CD793@bigfoot.com
in order to achieve the same effect as constructor arguments in c++ it
is helpful to define an attributes class for each application-object
class (with the same inheritance pattern as the application classes).
the attributes class tagged record contains a field for each application
-class tagged record field requiring explicit initialization.
then, define the base class tagged record for your
application-object classes with a classwide access value to a
constant attributes class instance as one of its members.
finally, the base class constructor reads the initial-attributes values
for its attributes member from config files (for example). the
inheriting classes then look-up the appropriate initial values in
This.Attributes (for "Initialize (This : in out access Object)")....
another way is to is enclose your classes in generic packages with the
generic formal parameters corresponding to constructor arguments.
however, this would seem to force a singleton pattern.
--rwilson
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~2000-10-22 0:00 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-18 0:00 Constructors/Destructors in Ada95 Francois Godme
2000-10-19 0:00 ` Ted Dennison
2000-10-19 0:00 ` tmoran
2000-10-19 0:00 ` Francois Godme
2000-10-19 0:00 ` Ted Dennison
2000-10-20 0:00 ` Tucker Taft
2000-10-20 0:00 ` Francois Godme
2000-10-21 0:00 ` Marin David Condic
2000-10-23 0:00 ` Francois Godme
2000-10-24 0:00 ` Ray Blaak
2000-10-25 0:00 ` Francois Godme
2000-10-25 0:00 ` Marin David Condic
2000-10-25 0:00 ` dmitry6243
2000-10-25 0:00 ` mark.biggar
2000-10-26 11:44 ` dmitry6243
2000-10-26 13:25 ` Robert A Duff
2000-10-27 8:10 ` dmitry6243
2000-10-26 17:55 ` tmoran
2000-10-27 8:10 ` dmitry6243
2000-10-26 21:31 ` Tucker Taft
2000-10-27 8:46 ` dmitry6243
2000-10-25 0:00 ` Pascal Obry
2000-10-26 0:00 ` dmitry6243
2000-10-27 7:12 ` Ray Blaak
2000-10-27 18:11 ` Francois Godme
2000-10-30 11:36 ` Robert A Duff
2000-10-30 22:03 ` dale
2000-10-22 0:00 ` rwilson007007 [this message]
2000-10-22 0:00 ` Francois Godme
2000-10-24 0:00 ` rwilson007007
2000-10-19 0:00 ` Marin David Condic
-- strict thread matches above, loose matches on Subject: below --
2000-10-29 22:51 rwilson007007
2000-10-30 4:03 ` Ray Blaak
2000-10-30 12:13 ` Marin David Condic
2000-10-30 16:39 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox