comp.lang.ada
 help / color / mirror / Atom feed
* Ada.Containers.Indefinite_Doubly_Linked_Lists
@ 2007-02-05 17:47 Carroll, Andrew
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Carroll, Andrew @ 2007-02-05 17:47 UTC (permalink / raw)
  To: comp.lang.ada

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



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

end of thread, other threads:[~2007-02-05 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 17:47 Ada.Containers.Indefinite_Doubly_Linked_Lists Carroll, Andrew
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

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