From: shoko2004@hotmail.com (shoko)
Subject: oo programing question
Date: 6 Dec 2003 11:01:33 -0800
Date: 2003-12-06T11:01:33-08:00 [thread overview]
Message-ID: <4948f537.0312061101.4155ad81@posting.google.com> (raw)
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
next reply other threads:[~2003-12-06 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-06 19:01 shoko [this message]
2003-12-06 20:18 ` oo programing question Stephen Leake
2003-12-07 14:01 ` Martin Krischik
-- strict thread matches above, loose matches on Subject: below --
2003-12-07 21:14 shoko
2003-12-08 19:04 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox