comp.lang.ada
 help / color / mirror / Atom feed
From: Albert <weeper_MATEMLSPAM_@menta.net>
Subject: Instantiating generics
Date: Tue, 09 Dec 2003 11:02:31 +0100
Date: 2003-12-09T11:02:31+01:00	[thread overview]
Message-ID: <pan.2003.12.09.10.02.31.801470@menta.net> (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





             reply	other threads:[~2003-12-09 10:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09 10:02 Albert [this message]
2003-12-09 12:10 ` Instantiating generics David C. Hoos
2003-12-10 10:36   ` Albert
2003-12-10 12:21     ` David C. Hoos, Sr.
replies disabled

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