comp.lang.ada
 help / color / mirror / Atom feed
From: "Albrecht Käfer" <albrecht_kaefer@yahoo.de>
Subject: Re: Hiding the value of Constants
Date: Sun, 12 Jul 2009 00:03:58 +0200
Date: 2009-07-12T00:03:58+02:00	[thread overview]
Message-ID: <h3b2kp$upg$1@online.de> (raw)
In-Reply-To: <fR76m.109597$d36.74475@bgtnsc04-news.ops.worldnet.att.net>

anon schrieb:
> In the years, there has been a few people asking how to hide values or constant.
> Some say use private which the value is still known. Others say use functions
> which can be hidden by removing the source code of the body of the package,
> but requires a call runtime routine each time the value is needed.

Not necessarily. There's something called "optimizer" for things like these.

> But the main problem is that each person who wants to hide a constant forgets
> is that all someone has to do is to write a simple program to print the value.

Er ... what?

> In my example I just showed a third way. To initialize the value at the
> Elaboration time instead of compile or using main runtime.

But you do know why constants are called constants, right? How exactly
was your example declaring a constant?


Albrecht



  reply	other threads:[~2009-07-11 22:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07  8:48 Hiding the value of Constants Rick
2009-07-07  8:54 ` xavier grave
2009-07-07  8:58   ` AdaMagica
2009-07-07  9:41 ` Georg Bauhaus
2009-07-07 10:41   ` Hibou57 (Yannick Duchêne)
2009-07-07 15:51     ` Adam Beneschan
2009-07-07 16:26       ` Hibou57 (Yannick Duchêne)
2009-07-07 18:48       ` Dmitry A. Kazakov
2009-07-07 19:05         ` Adam Beneschan
2009-07-07 19:53           ` Dmitry A. Kazakov
2009-07-07 20:28             ` Adam Beneschan
2009-07-07 20:57               ` Dmitry A. Kazakov
2009-07-08 10:25                 ` Georg Bauhaus
2009-07-08 12:20                   ` Dmitry A. Kazakov
2009-07-09 23:04 ` anon
2009-07-10  6:37   ` AdaMagica
2009-07-11 19:06     ` anon
2009-07-11 19:26       ` Georg Bauhaus
2009-07-11 21:53         ` anon
2009-07-11 22:03           ` Albrecht Käfer [this message]
2009-07-11 22:15           ` Ed Falis
2009-07-15  9:30             ` anon
2009-07-11 23:31           ` Egil
replies disabled

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