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.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,92d1af21ade61406 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-29 11:59:15 PST From: =?iso-8859-1?q?=22M=E5rten?= Woxberg" Newsgroups: comp.lang.ada Subject: Re: Problems with 'class, help anyone? Date: Tue, 29 Oct 2002 20:10:39 +0100 Organization: Island Message-ID: References: <3DBE2593.9080800@worldnet.att.net> NNTP-Posting-Host: k27.ryd.student.liu.se Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.island.liu.se 1035921547 15946 130.236.212.27 (29 Oct 2002 19:59:07 GMT) X-Complaints-To: abuse@island.liu.se NNTP-Posting-Date: Tue, 29 Oct 2002 19:59:07 +0000 (UTC) User-Agent: Pan/0.13.1 (It's always funny until somebody immanentizes the eschaton) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se!news.Update.UU.SE!news.island.liu.se!not-for-mail Xref: archiver1.google.com comp.lang.ada:30201 Date: 2002-10-29T20:10:39+01:00 List-Id: On Tue, 29 Oct 2002 06:08:40 +0000, Jim Rogers wrote: > M�rten Woxberg wrote: > >> I'm trying to use 'class >> here in a way I hope works :) >> apparently it doesn't tough.. >> >> I'm using example code from: >> http://www.ankh-morpork.com/Simon/adabook/x6.htm >> >> Abit old I guess but it's supposed to be for Ada95 >> >> I've done almost exactly as this but now I get: >> bash-2.03$ gnatmake main >> gcc -c main.adb >> main.adb:13:24: no selector "Humanoid" for private type "Instance" defined at mob.ads:7 >> main.adb:15:27: no selector "Instance" for private type "Instance" defined at mob.ads:7 >> main.adb:23:18: type of object cannot be abstract >> main.adb:28:12: expected type "Pointer" defined at line 8 >> main.adb:28:12: found private type "Instance" defined at mob-humanoid.ads:11 >> main.adb:29:12: expected type "Pointer" defined at line 8 >> main.adb:29:12: found private type "Instance" defined at mob.ads:7 >> gnatmake: "main.adb" compilation error >> >> >> According to the webpage above this should work (If I understood it >> correctly). > > > I see you are doing something *almost* exactly the same. The almost seems > to be your problem. > > The GNAT error messages are pretty clear. To give you a detailed analysis of > your code I would need to see your code, not just the compiler error messages. I thought I attached the files with my post but this seem not to be the case. http://k27.ryd.student.liu.se/ada/ The sources are located at the above URL. > Jim Rogers /M�rten