comp.lang.ada
 help / color / mirror / Atom feed
* What's it's name again?
@ 2002-07-29 23:13 chris.danx
  2002-07-29 23:32 ` Larry Elmore
  2002-07-29 23:47 ` Robert A Duff
  0 siblings, 2 replies; 11+ messages in thread
From: chris.danx @ 2002-07-29 23:13 UTC (permalink / 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'




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-08-02  2:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-29 23:13 What's it's name again? chris.danx
2002-07-29 23:32 ` 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

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