comp.lang.ada
 help / color / mirror / Atom feed
From: "Carroll, Andrew" <andrew.carroll@okstate.edu>
To: <comp.lang.ada@ada-france.org>
Subject: Ada.Containers.Indefinite_Doubly_Linked_Lists
Date: Mon, 5 Feb 2007 11:47:57 -0600
Date: 2007-02-05T18:50:02+01:00	[thread overview]
Message-ID: <mailman.71.1170697701.18371.comp.lang.ada@ada-france.org> (raw)

I think then this is basically what I need to do (out of context and
there may be mistakes).

Type Attribute is record
	Name: String(50);
	Type: String(25);
	...
End record;

Package Attribute_List is new new
Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute);

Type Table is record
	Name: String(50);
	Attributes:  Attribute_List;
End record

Package Table_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists
(Table);



I'm kind of lost though as to where these package declarations should
go.  Should they be like:

Package Table_List_Thingy is

	Type Attribute is record
		Name: String(50);
		Type: String(25);
		...
	End record;

	Package Attribute_List is new new
Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute);

	Type Table is record
		Name: String(50);
		Attributes:  Attribute_List;
	End record

	Package Table_List is new
Ada.Containers.Indefinite_Doubly_Linked_Lists (Table);

End Table_List_Thingy;


OR

Procedure RunMe(...) is 

	Type Attribute is record
		Name: String(50);
		Type: String(25);
		...
	End record;

	Package Attribute_List is new new
Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute);

	Type Table is record
		Name: String(50);
		Attributes:  Attribute_List;
	End record

	Package Table_List is new
Ada.Containers.Indefinite_Doubly_Linked_Lists (Table);

Begin
	...

End RunMe;

What are your suggestions?

Andrew



             reply	other threads:[~2007-02-05 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 17:47 Carroll, Andrew [this message]
2007-02-05 18:33 ` Ada.Containers.Indefinite_Doubly_Linked_Lists Jeffrey R. Carter
2007-02-05 20:39 ` Ada.Containers.Indefinite_Doubly_Linked_Lists Niklas Holsti
replies disabled

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