From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Newbie question on child packages
Date: Wed, 9 Oct 2002 12:12:05 -0400
Date: 2002-10-09T12:12:05-04:00 [thread overview]
Message-ID: <uq8laml147uve9@corp.supernews.com> (raw)
In-Reply-To: OgYo9.40823$Oa1.39958@nwrddc02.gnilink.net
"Justin Birtwell" <jbirtwell@yahoo.com> wrote in message
news:OgYo9.40823$Oa1.39958@nwrddc02.gnilink.net...
>
> Top level, empty parent package....JB.ads
> package JB is
> --empty
> end JB;
You should mark this as a "pure" package:
package JB is
pragma Pure;
end;
> A child package spec called A.ads
> package JB.A is
> .........
> end JB.A;
The mapping of file names to compilation units is compiler-specific. If
you're using GNAT, for example, then this file would need to be named
jb-a.ads.
(However, if you're using GNAT, it should have given you a warning when you
tried to compile the spec.)
> A child package body called A.adb
> package body JB.A is
> <code>
> end JB.A;
In GNAT, this needs to be named jb-a.adb.
> Here's my problem. When I go to compile and build A I get an error from
> A.adb "file jb-A.ads not found". I made sure to compile A.ads but I'm
still
> getting the same error. All the files are in the same folder. Do I have
to
> change the name of A.ads to JB.A.ads? or JB-A.ads?
The latter.
next prev parent reply other threads:[~2002-10-09 16:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 15:52 Newbie question on child packages Justin Birtwell
2002-10-09 16:12 ` Matthew Heaney [this message]
2002-10-09 16:20 ` Justin Birtwell
2002-10-09 16:54 ` Matthew Heaney
2002-10-09 18:45 ` Preben Randhol
2002-10-09 16:18 ` Jim Rogers
2002-10-09 19:16 ` Simon Wright
2002-10-09 21:06 ` Stephen Leake
2002-10-11 5:00 ` Simon Wright
2002-10-09 16:43 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox