From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,29f311e5e4153888 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail From: "ramesh" Newsgroups: comp.lang.ada Subject: Re: need help with errors im getting Date: 26 Jun 2005 02:23:28 -0700 Organization: http://groups.google.com Message-ID: <1119777808.530940.244220@g49g2000cwa.googlegroups.com> References: <1119650372.546285.220190@z14g2000cwz.googlegroups.com> <1119724710.107186.139010@g47g2000cwa.googlegroups.com> <6g5sb1ptj1611oq6vbiirutlj9gv5lv39m@4ax.com> <1119773542.691728.137240@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 158.135.0.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1119777813 23041 127.0.0.1 (26 Jun 2005 09:23:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 26 Jun 2005 09:23:33 +0000 (UTC) In-Reply-To: <1119773542.691728.137240@g49g2000cwa.googlegroups.com> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=158.135.0.42; posting-account=jaODIw0AAAAqz8a5fLvIQzGSVAOK2M7x Xref: g2news1.google.com comp.lang.ada:11662 Date: 2005-06-26T02:23:28-07:00 List-Id: ---------------------------------------------------------- Student_pack.ads ---------------------------------------------------- with testing; use testing; with Date_pack; use Date_pack; package Student_pack is type Majors is (ComputerScience, Math, Business, Physics, Biology, Chemistry); type Classify is (Freshman, Sophomore, Junior, Senior, GradStudent); type Student is limited private; --type Access_Person(obj: access Person'Class) is--- is new Person with --record --Major : majors; --Classification: Classify; --EntryDate: Date; --end record; task Studenttask is entry Student(n: String20; dob: Date; s : Sex1; maj : Majors; cl : Classify; ed : Date); entry PrintName(name: Student_pack.Student); entry PrintMajor(major: Student_pack.Student); entry SetMajor(major: Student_pack.Student); entry SetClassification(cl: Student_pack.Student); entry PrintClassification(cl: Student_pack.Student); entry PrintAll(s: Student_pack.Student); end studenttask; private type Student is new person with record Major : Majors; Classification: Classify; EntryDate: Date; end record; --type C is tagged limited record A : AC (C'Access); B : BC (C'Access); ... -- other stuff if desired end record; --type Student is tagged limited record Person : Access_Student(Student'class); end record; end Student_pack; ------------------------------------------------------ Student.Adb _------------------------------------------------------ with testing; use testing; with Date_pack; use Date_pack; package Student_pack is type Majors is (ComputerScience, Math, Business, Physics, Biology, Chemistry); type Classify is (Freshman, Sophomore, Junior, Senior, GradStudent); type Student is limited private; --type Access_Person(obj: access Person'Class) is--- is new Person with --record --Major : majors; --Classification: Classify; --EntryDate: Date; --end record; task Studenttask is entry Student(n: String20; dob: Date; s : Sex1; maj : Majors; cl : Classify; ed : Date); entry PrintName(name: Student_pack.Student); entry PrintMajor(major: Student_pack.Student); entry SetMajor(major: Student_pack.Student); entry SetClassification(cl: Student_pack.Student); entry PrintClassification(cl: Student_pack.Student); entry PrintAll(s: Student_pack.Student); end studenttask; private type Student is new person with record Major : Majors; Classification: Classify; EntryDate: Date; end record; --type C is tagged limited record A : AC (C'Access); B : BC (C'Access); ... -- other stuff if desired end record; --type Student is tagged limited record Person : Access_Student(Student'class); end record; end Student_pack; ---------------------------------------------------------------- Im getting errors in the body of Student_pack: Its not allowing the inherited fields name, sex, BirthDAte, evn its not recognising the student fields: major, classification, entrydate, Please help me with this im really struggling, do i need to create a pointer to point to store student and person details.