From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: begin clause in package bodies
Date: Fri, 1 Dec 2017 14:20:53 +0100
Date: 2017-12-01T14:20:53+01:00 [thread overview]
Message-ID: <ovrkvl$1o27$1@gioia.aioe.org> (raw)
In-Reply-To: 7732b88c-5911-4857-a9c8-e5a719043b26@googlegroups.com
On 01/12/2017 14:05, Mehdi Saada wrote:
> Ok. But it has to be a limited practice right ?
No. It is cleaner and safer than singletons implemented by a controlled
object at the library scope.
> I read using package with internal states or global variable was bad,
Initialization is not a state nor a global variable. Prior to
initialization there is no state at all, the thing stateful or not does
not yet exist.
> Less a problem Using a generic than can be instanced anywhere though.
Generics (static polymorphism) are orthogonal to the issue of
initialization.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2017-12-01 13:20 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
2017-12-01 13:05 ` Mehdi Saada
2017-12-01 13:20 ` Dmitry A. Kazakov [this message]
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