comp.lang.ada
 help / color / mirror / Atom feed
* Why won't this package compile?
@ 2001-12-26 13:33 Liddle Feesh
  2001-12-26 14:15 ` Liddle Feesh
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Liddle Feesh @ 2001-12-26 13:33 UTC (permalink / raw)


Can anyone tell me why the queue package below won't compile?

I'm running ObjectADA Version 7.2 Special Edition, since GNAT won't run on
my machine.

The compiler keeps throwing up "Error: Line 9, col 39 Parse error: expected
COLON, got IN, Inserting COLON.

The line in question is: " procedure Remove(N:  out Integer;  Q: in out
Queue); "


Any ideas? I'm stumped if this is actually a syntactical problem.


--
Liddle Feesh
 '  O 0 o <"//><  ' o'^
(Remove UNDERPANTS to reply)




------

package queue_package is

 TYPE queue is LIMITED PRIVATE;
 empty_queue   :   EXCEPTION;

 procedure initialise (q:  in out queue);
 function is_empty_queue (q:  queue) return boolean;
 procedure add(n:  in integer;  q:  in out queue);
 procedure remove(n:  out integer;  q: in out queue);
 --remove raises the exception "empty-queue" if applied to an empty queue

 PRIVATE
 TYPE node;
 TYPE link is ACCESS node;   --ACCESS is a pointer type
 TYPE node is RECORD
  value   :     integer;
  next    :   link :=NULL;
 END RECORD;

 TYPE queue is RECORD
  head:  link;
  tail:  link;
 END RECORD;

 END queue_package;








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

end of thread, other threads:[~2001-12-28 17:08 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-26 13:33 Why won't this package compile? Liddle Feesh
2001-12-26 14:15 ` Liddle Feesh
2001-12-26 14:59   ` Michal Nowak
2001-12-26 22:20     ` Liddle Feesh
2001-12-27  8:21       ` Michael Bode
2001-12-27 10:02       ` Michal Nowak
2001-12-27 17:03         ` Liddle Feesh
2001-12-28  9:15           ` GNAT on Win2K Was: " Michal Nowak
2001-12-28 16:25             ` Alfred Hilscher
2001-12-28 17:08               ` Liddle Feesh
2001-12-26 15:08   ` Jeff Creem
2001-12-26 14:49 ` Larry Hazel
2001-12-26 22:21   ` Liddle Feesh
2001-12-27  1:19     ` Larry Hazel
2001-12-26 19:33 ` martin.m.dowie
2001-12-26 23:10 ` Why won't this package compile? - ERRORS FIXED & NEW PROBLEMS & New Source Code Listing Liddle Feesh
2001-12-27  4:21   ` Larry Hazel
2001-12-27 16:57     ` Liddle Feesh

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