comp.lang.ada
 help / color / mirror / Atom feed
* Instantiating generics
@ 2003-12-09 10:02 Albert
  2003-12-09 12:10 ` David C. Hoos
  0 siblings, 1 reply; 4+ messages in thread
From: Albert @ 2003-12-09 10:02 UTC (permalink / raw)


I'm trying to instantiate the Queue_Manager_1 example from 12.3
Ada Distillier, the problem is the function Is_Valid.

with Queue_Manager_1;

procedure Demostration is
	type O_Positive is tagged
	record
		Val:Positive;
	end record;
	function Is_Valid(Data:O_Positive) return Boolean is
	begin
		return True;
	end Is_Valid;
	package QMP is new Queue_Manager_1(Element=>O_Positive);
begin
	null;
end Demostration;


Can anyone help me�.
thanks

Albert





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

end of thread, other threads:[~2003-12-10 12:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-09 10:02 Instantiating generics Albert
2003-12-09 12:10 ` David C. Hoos
2003-12-10 10:36   ` Albert
2003-12-10 12:21     ` David C. Hoos, Sr.

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