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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "ramesh" Newsgroups: comp.lang.ada Subject: need help with errors im getting Date: 24 Jun 2005 14:59:32 -0700 Organization: http://groups.google.com Message-ID: <1119650372.546285.220190@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 158.135.0.43 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1119650377 11177 127.0.0.1 (24 Jun 2005 21:59:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 24 Jun 2005 21:59:37 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=158.135.0.43; posting-account=jaODIw0AAAAqz8a5fLvIQzGSVAOK2M7x Xref: g2news1.google.com comp.lang.ada:11631 Date: 2005-06-24T14:59:32-07:00 List-Id: Hi Im a biginner in Ada, I get the following errors for the following code. with oosum1pro; use oosum1pro;---for date with oosum1pro1; use oosum1pro1; package Student_pack is type Majors is (ComputerScience, Math, Business, Physics, Biology, Chemistry); type Classify is (Freshman, Sophomore, Junior, Senior, GradStudent); --type Hobbies is (None, SailBoarding, Swimming, Hiking, Marbles, SkyDiving, Acting); --subtype String5 is String(1..5); --type Sex1 is (female,male); type Student is private; task Studenttask is entry Student(n: String5; dob: Date; s : Sex1; maj : Majors; cl : Classify; ed : Date); entry PrintName(name: Student);--line 17 entry PrintMajor(major: Student); entry SetMajor(major1: Student); entry SetClasification(cl: Student); entry PrintClassification(cl: Student); entry PrintAll(s: Student);--line 22 end studenttask; private type Student is new person with--line 28 record Major : Majors; Classification: Classify; EntryDate: Date; end record; end Student_pack; Errors are at At line 17,18,19,20,21,22 "subtype mark required in this context" At line 28 COmpletion of nonlimited type cannot be limited.