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-28 22:08:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3DBE2593.9080800@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Problems with 'class, help anyone? References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 29 Oct 2002 06:08:40 GMT NNTP-Posting-Host: 12.86.33.186 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1035871720 12.86.33.186 (Tue, 29 Oct 2002 06:08:40 GMT) NNTP-Posting-Date: Tue, 29 Oct 2002 06:08:40 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:30196 Date: 2002-10-29T06:08:40+00:00 List-Id: 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. Jim Rogers