From: GBOOCH@USC-ECLB.ARPA
Subject: Re: design problem/?
Date: Fri, 13-Sep-85 14:35:56 EDT [thread overview]
Date: Fri Sep 13 14:35:56 1985
Message-ID: <12142975372.32.GBOOCH@USC-ECLB.ARPA> (raw)
In-Reply-To: BRYAN@SU-SIERRA.ARPA
For a heavilylayered system in which abstractions are built on
top of abstractions (and each layer hids its implementation), I tend to
use either access types (occasionally) or derived types (most often).
thus, in your example of the package file_stuff, I would probably write
the full type declaration for a_file as:
type a_file is new text_io.file_type;
This actually is a common issue (i.e. how tdo I get the implementation of
a private type to map excatly to another type). It would be
nice (sometimes) to have a fully type declaration in the private part
as a subtype, rather than a type, but Ada prevents this (and for
good reason, I believe...the alternative produces some strnage
problems).
egb
-------
next parent reply other threads:[~1985-09-13 18:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BRYAN@SU-SIERRA.ARPA>
1985-09-13 18:35 ` GBOOCH [this message]
1985-09-13 6:08 design problem/? Doug Bryan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox