From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Here my package
Date: 04 Apr 2001 13:41:37 -0500
Date: 2001-04-04T18:56:18+00:00 [thread overview]
Message-ID: <u4rw45wym.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: fwIy6.332$A24.155820@carnaval.risq.qc.ca
"Mich" <katho@tr.cgocable.ca> writes:
> The requirement is with the function that i already got is to put everything
> in my procedure but i don't know how : that my real problem...i work on that
> for about 3 days and i don't know how to... if you could help tahnx
I'm not sure I'm following you, but I think you are saying you need a
main procedure Date_Valide that contains the package lesdates. No
problem:
procedure Date_Valide is
package lesdates is
type date is record
...
end lesdates;
begin -- Date_Valide
stuff that uses functions in lesdates
end Date_Valide;
In Ada, you can nest package declarations in the declaration part of a
procedure.
You can also just declare everything in package lesdates directly in
the declaration part of the procedure Date_Valide; you don't need a
package.
--
-- Stephe
next prev parent reply other threads:[~2001-04-04 18:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0rGy6.262$A24.137061@carnaval.risq.qc.ca>
2001-04-04 14:46 ` Here my package Ted Dennison
2001-04-04 14:56 ` Mich
2001-04-04 15:29 ` Marin David Condic
2001-04-04 15:57 ` Mich
2001-04-04 16:15 ` Marin David Condic
2001-04-04 16:40 ` Jeffrey Carter
2001-04-04 17:06 ` Mich
2001-04-04 18:41 ` Stephen Leake [this message]
2001-04-04 22:06 ` Jeffrey Carter
2001-04-05 4:20 ` DuckE
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox