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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,933ebd8abdfd4df1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-06 11:01:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: shoko2004@hotmail.com (shoko) Newsgroups: comp.lang.ada Subject: oo programing question Date: 6 Dec 2003 11:01:33 -0800 Organization: http://groups.google.com Message-ID: <4948f537.0312061101.4155ad81@posting.google.com> NNTP-Posting-Host: 217.132.233.249 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1070737293 6388 127.0.0.1 (6 Dec 2003 19:01:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 6 Dec 2003 19:01:33 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3184 Date: 2003-12-06T11:01:33-08:00 List-Id: i have the following code: package a is --car class -- type a is tagged private; type a_ptr is access all car'class; --car methods -- private type a is tagged record name:String(1..256); end record; end a; ------------------------------------- with a; package b is type b is new a.a with private; <-- constraint error type b_Ptr is access all b'Class; function init_b(maximum:positive) return b_Ptr; private type b is new a.awith record maximum_:positive; end record; end b; ------------------------------------------- in the main procedure: with a;use a; with b;use b; procedure main is new_b:b_ptr; begin new_b := init_b(90); end main; i get constraint error on b.ads i dont understand why please help