From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: What's it's name again?
Date: Tue, 30 Jul 2002 00:13:38 +0100
Date: 2002-07-30T00:13:38+01:00 [thread overview]
Message-ID: <c%j19.1578$Qi2.19423@newsfep3-gui.server.ntli.net> (raw)
Hi,
What do you call private types whose declaration is found in the
specification but whose definition is found in the body? I remember
reading/hearing that they have a name (or term) associated with them,
but can't remember what it is.
Are there any complications with moving type definitions to the body?
(e.g. with controlled types?). Cohens' book is at the ready, just need
their name or a pointer!
I currently have some packages which look like
package some_kind_of_data_structure is
type data_structure is private;
private
type data_structure is Ada.Finalized.Controlled with record
...
end record;
end some_data_structure;
but have been wondering what would happen if the definitions were moved
(the obvious benefit is that the package specification does not need to
be recompiled when the representation is changed, but is that really a
benefit when small numbers of files are involved?)
This kind of design was mentioned in passing in a Software Design
course, and I wondered why people prefer one way over the other (most of
the ada code I've seen uses the spec to complete the definition of a
type). Just curious, that's all!
Regards,
Chris
--
to reply change 'spamoff' to 'chris'
next reply other threads:[~2002-07-29 23:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 23:13 chris.danx [this message]
2002-07-29 23:32 ` What's it's name again? Larry Elmore
2002-07-30 0:08 ` chris.danx
2002-07-29 23:47 ` Robert A Duff
2002-07-30 0:50 ` chris.danx
2002-07-30 8:21 ` Dmitry A. Kazakov
2002-07-30 18:53 ` Robert A Duff
2002-08-01 0:11 ` Dmitry A.Kazakov
2002-07-31 20:38 ` Robert A Duff
2002-08-02 2:21 ` Dmitry A.Kazakov
2002-07-30 18:55 ` Richard Riehle
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox