comp.lang.ada
 help / color / mirror / Atom feed
* Test for constant (or "in parameter" in procedure)
@ 2017-02-09  4:38 reinkor
  2017-02-09 12:11 ` AdaMagica
  2017-03-26 20:57 ` Norman Worth
  0 siblings, 2 replies; 14+ messages in thread
From: reinkor @ 2017-02-09  4:38 UTC (permalink / raw)


Hi,

is it a good way to test if an object is a constant or not (or "in parameter" in a procedure)? Something in addition to declare it as a constant?

If I am sure an object is a constant (and can check it) then this can sometimes help to structure/optimize the code. I would like to have some redundancy and make sure an object is really constant when this is a prerequisite for a piece of code to be according to my intentions - i.e. if the object is messed with somewhere, then things could go wrong. So I would like some "local check" to be sure a constant is really a constant :-) Specially if many people are involved to change code over time.

reinert

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-03-26 20:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09  4:38 Test for constant (or "in parameter" in procedure) reinkor
2017-02-09 12:11 ` AdaMagica
2017-02-09 12:46   ` reinkor
2017-02-09 13:09     ` Dmitry A. Kazakov
2017-02-09 14:10     ` AdaMagica
2017-02-09 15:01       ` reinkor
2017-02-09 16:51     ` G.B.
2017-02-09 16:59       ` reinkor
2017-02-09 17:17         ` Dmitry A. Kazakov
2017-02-09 17:31           ` G.B.
2017-02-09 18:46       ` Niklas Holsti
2017-02-10  7:48         ` reinkor
2017-02-09 18:03     ` Jeffrey R. Carter
2017-03-26 20:57 ` Norman Worth

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