comp.lang.ada
 help / color / mirror / Atom feed
* Re: An array of records within an array of records (Still a problem)
@ 1998-05-02  0:00 tmoran
  1998-05-04  0:00 ` Stephen Leake
  0 siblings, 1 reply; 6+ messages in thread
From: tmoran @ 1998-05-02  0:00 UTC (permalink / raw)



> type cd_track_array is array(1..3) of cd_track;
> new_cd_track:cd_track_array;
> ...
>                 id:new_cd_track;
You need          id:cd_track_array;
What you have now is like
  A : Integer;
  B : A;
It's a good idea to pay a lot of attention to naming.  'cd_track_array'
could be a particular array of cd_track's, or it could be, as it is
here, a type - a general description of any set of three cd_track's.
Some people like to put _type or _t or make a plural for a type name to
distinguish it from a variable name, or perhaps use _array for the type
and _list for the variable, or prefix the variable with The_ or A_, or
whatever.  It can be really helpful if you adopt some convention and
then stick to it.  And to the extent your programs are to be read by
others, it's good if you and they share the same conventions.
  Hoping this thread doesn't turn into another war over which
convention is 'right'.    Tom Moran




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

end of thread, other threads:[~1998-05-08  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-02  0:00 An array of records within an array of records (Still a problem) tmoran
1998-05-04  0:00 ` Stephen Leake
1998-05-06  0:00   ` Dr Richard A. O'Keefe
1998-05-06  0:00     ` _Type (was: Re: An array of records within an array of records (Still a problem)) Norman H. Cohen
1998-05-08  0:00       ` Michael F Brenner
1998-05-06  0:00     ` An array of records within an array of records (Still a problem) Robert Dewar

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