comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: begin clause in package bodies
Date: Fri, 1 Dec 2017 11:54:39 +0100
Date: 2017-12-01T11:54:39+01:00	[thread overview]
Message-ID: <ovrcdf$u6j$1@dont-email.me> (raw)
In-Reply-To: <4c77317b-6d12-474f-928d-c713501f647a@googlegroups.com>

On 12/01/2017 12:28 AM, Mehdi Saada wrote:
> I am a beginner, and curious...
> How is used the "begin" clause in package bodies, usually ? Since package are libraries, I didn't think it could also behave like a procedure (or a task, since I assume it runs in parallel with the program calling it ?).
> [begin
>     handled_sequence_of_statements]
> end [[parent_unit_name.]identifier];

This is executed once, as the last thing during elaboration of the package, and 
provides for initialization that would not be otherwise possible.

-- 
Jeff Carter
"I'm a kike, a yid, a heebie, a hook nose! I'm Kosher,
Mum! I'm a Red Sea pedestrian, and proud of it!"
Monty Python's Life of Brian
77


  parent reply	other threads:[~2017-12-01 10:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30 23:28 begin clause in package bodies Mehdi Saada
2017-12-01  0:09 ` Anh Vo
2017-12-01 10:54 ` Jeffrey R. Carter [this message]
2017-12-01 13:05 ` Mehdi Saada
2017-12-01 13:20   ` Dmitry A. Kazakov
2017-12-01 14:59   ` Simon Wright
2017-12-01 15:15     ` Mehdi Saada
2017-12-01 15:52       ` Dmitry A. Kazakov
2017-12-01 22:23         ` Randy Brukardt
2017-12-01 22:26     ` Randy Brukardt
2017-12-01 16:29   ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox