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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-28 21:31:56 PST From: =?iso-8859-1?q?=22M=E5rten?= Woxberg" Newsgroups: comp.lang.ada Subject: Problems with 'class, help anyone? Date: Tue, 29 Oct 2002 05:48:25 +0100 Organization: Island Message-ID: 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 1035869508 24450 130.236.212.27 (29 Oct 2002 05:31:48 GMT) X-Complaints-To: abuse@island.liu.se NNTP-Posting-Date: Tue, 29 Oct 2002 05:31:48 +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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.ulv.nextra.no!nextra.com!uio.no!newsfeed1.uni2.dk!news.net.uni-c.dk!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:30195 Date: 2002-10-29T05:48:25+01:00 List-Id: 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). /M�rten Woxberg