comp.lang.ada
 help / color / mirror / Atom feed
* Help GNAT 3.05 Compiler Message
@ 1996-10-18  0:00 Jocelyn H�bert
  0 siblings, 0 replies; only message in thread
From: Jocelyn H�bert @ 1996-10-18  0:00 UTC (permalink / raw)



Hi!
	I want to put pointer to a list that is instantiated from a generic package into 
a record, the list type is declared private in the generic package. When I compile the 
following code I get the error message "subtype mark require in this context", I am new 
to Ada and do not understand this message. If anyone has any suggestion please send them 
at my E-mail address. Thanks in advance!

	 10. WITH Generic_Lists;
	 11. 
	 12. PACKAGE Priority_List IS
	 13. 
	 14.  
	 15.  -- exported types
	 16. 
	 17.  TYPE Pos IS PRIVATE;
	 18.  TYPE Priority IS PRIVATE;
	 19.  
	 20.  
	 21. PRIVATE
	 22.     TYPE Process IS RECORD
	 23.        Num_Priority :  Integer;
	 24.        Num_Process  :  Integer;
	 25.      END RECORD;
	 26.      
	 27.  
	 28.  PACKAGE Process_List IS NEW Generic_Lists( ElementType => Process);
	 29.  
	 30. 
	 31. 
	 32.  TYPE Node;
	 33.  TYPE Pos IS ACCESS Node;
	 34.  TYPE Ptr_Process IS ACCESS Process_List;
											
	  |
		  >>> subtype mark required in this context

	 35.  
	 36.     
	 37.  TYPE Node IS RECORD
	 38.        Priority : Integer;
	 39.        Process  : Ptr_Process;
	 40.        Link     : Pos;
	 41.      END RECORD;
	 42.      
	 43.  TYPE Priority IS RECORD
	 44.        Head  : Pos;
	 45.        Tail  : Pos;
	 46.      END RECORD;
	 47.      
	 48. END Priority_List;
	 49.     
	 50.        
	 51.  

 51 lines:

Jocelyn Hebert, felix@odyssee.net




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-10-18  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-18  0:00 Help GNAT 3.05 Compiler Message Jocelyn H�bert

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