From: Jocelyn H�bert <felix@odyssee.net>
Subject: Help GNAT 3.05 Compiler Message
Date: 1996/10/18
Date: 1996-10-18T00:00:00+00:00 [thread overview]
Message-ID: <326825DF.614D@odyssee.net> (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
reply other threads:[~1996-10-18 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox