comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: begin clause in package bodies
Date: Thu, 30 Nov 2017 16:09:27 -0800 (PST)
Date: 2017-11-30T16:09:27-08:00	[thread overview]
Message-ID: <1c7c0a74-b5fe-41d8-a347-e4b35bcbecf1@googlegroups.com> (raw)
In-Reply-To: <4c77317b-6d12-474f-928d-c713501f647a@googlegroups.com>

On Thursday, November 30, 2017 at 3:28:17 PM UTC-8, 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];

I call it package constructor since it is executed during package elaboration. Thus, it is used to initialize certain data such as database and so on.

Anh Vo 


  reply	other threads:[~2017-12-01  0:09 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 [this message]
2017-12-01 10:54 ` Jeffrey R. Carter
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