comp.lang.ada
 help / color / mirror / Atom feed
From: andrewl@sydney.DIALix.oz.au (Andrew Lees)
Subject: Re: Mut. Recurs. in Ada9X w/o Breaking Encaps.? (LONG)
Date: Sun, 02 Oct 94 03:31:56 GMT
Date: 1994-10-02T03:31:56+00:00	[thread overview]
Message-ID: <1994Oct02.033156.7756@sydney.DIALix.oz.au> (raw)
In-Reply-To: 1994Sep30.221301.6662@swlvx2.msd.ray.com

This discussion has led me to wonder if the source of the problem is
a clash between the desire to have "one package = one type" and the
essential structure of the problem being discussed.  This may appear
a little meta-physical, but I wonder if the relationship between
employee and office is not _core_ to the definition of employee, and
similarly for office (at least in the context of this problem ).
If this is the case, then
having the definitions of office and employee separate is itself
part of the problem - at an essential level they are not separate.

A possible solution recognising the intertwined nature of the two types
may be to have the office and employee identifiers (= access types)
defined in a single package as private types with their structure
left to the body.  This common package has nothing else, or may have
common employee-office operations.  The separate employee and office
operations are then defined in child packages, which can re-export the
associated indentifier type for those clients who are interested solely
in "employee" or "office" things, and do not wish to concern themslves
about the combined aspects.

I'm not sure if this is directly related to what was intended, but there
are certainly cases where this type of solution is required.

Andy Lees.



  reply	other threads:[~1994-10-02  3:31 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-27 16:52 Mut. Recurs. in Ada9X w/o Breaking Encaps.? (LONG) John Volan
1994-09-27 18:48 ` Mark A Biggar
1994-09-29  1:46   ` John Volan
1994-09-29 13:57     ` Tucker Taft
1994-09-29 17:20       ` Bjarne Stroustrup <9758-26353> 0112760
1994-09-30  1:38         ` Tucker Taft
1994-09-30 12:33           ` Bjarne Stroustrup <9758-26353> 0112760
1994-09-29 18:37       ` John Volan
1994-09-29 19:34         ` David Weller
1994-09-30 22:13           ` John Volan
1994-10-02  3:31             ` Andrew Lees [this message]
1994-09-30  1:47         ` Tucker Taft
1994-09-30 13:30           ` John Volan
1994-09-29 18:10     ` R. William Beckwith
1994-10-03  0:33     ` Cyrille Comar
1994-09-28 14:01 ` Norman H. Cohen
1994-09-29  2:12   ` John Volan
1994-09-29 14:01     ` Tucker Taft
1994-09-29 18:37     ` Norman H. Cohen
1994-09-29  9:48   ` Magnus Kempe
1994-09-29 13:10     ` Magnus Kempe
1994-09-29 18:05       ` Tucker Taft
1994-09-30 10:20         ` Mut. Recurs. in Ada9X w/o Breaking Encaps.? Magnus Kempe
1994-09-30 13:22           ` Tucker Taft
1994-10-01  1:24       ` Mut. Recurs. in Ada9X w/o Breaking Encaps.? (LONG) Adam Beneschan
1994-10-01 12:01         ` Magnus Kempe
1994-10-01 18:43         ` Mark A Biggar
1994-10-02 16:41         ` John Volan
1994-10-02 23:33           ` Matt Kennel
1994-10-03  8:07           ` Mut. Recurs. in Ada9X w/o Breaking Encaps.? Magnus Kempe
1994-10-03 12:14           ` Mut. Recurs. in Ada9X w/o Breaking Encaps.? (LONG) Robert I. Eachus
1994-10-04  2:12             ` R. William Beckwith
1994-10-04 16:00             ` John Volan
1994-10-05 11:42               ` Robert I. Eachus
1994-10-05 21:09               ` Matt Kennel
1994-10-03 20:29           ` Harry Koehnemann
1994-09-29 13:35     ` John Volan
1994-09-30 20:27       ` Norman H. Cohen
1994-10-01  1:47         ` John Volan
1994-10-01 20:44           ` Tucker Taft
1994-10-03 11:29           ` Robert I. Eachus
1994-09-30 22:46       ` Matt Kennel
1994-10-01  2:11         ` John Volan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox