From: "ramesh" <ramesh.mudedla@gmail.com>
Subject: Re: need help with errors im getting
Date: 26 Jun 2005 02:23:28 -0700
Date: 2005-06-26T02:23:28-07:00 [thread overview]
Message-ID: <1119777808.530940.244220@g49g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1119773542.691728.137240@g49g2000cwa.googlegroups.com>
----------------------------------------------------------
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.
next prev parent reply other threads:[~2005-06-26 9:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 21:59 need help with errors im getting ramesh
2005-06-24 22:42 ` Ed Falis
2005-06-25 1:43 ` ramesh
2005-06-25 6:17 ` Jeffrey Carter
2005-06-25 18:38 ` ramesh
[not found] ` <fovrb1t2l3nvsq6qden8vf2fkmgvg3614h@4ax.com>
[not found] ` <6g5sb1ptj1611oq6vbiirutlj9gv5lv39m@4ax.com>
2005-06-26 8:12 ` ramesh
2005-06-26 9:23 ` ramesh [this message]
[not found] ` <fu9ub1la6ofoc361j6pec48je2efh0b9e9@4ax.com>
[not found] ` <l3eub1l2ru5pguun3kitesfmgnfngur7vp@4ax.com>
2005-07-02 8:14 ` ramesh
2005-07-04 5:38 ` Dave Thompson
2005-07-04 21:16 ` ramesh
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox