From: reinkor <reinkor@gmail.com>
Subject: Test for constant (or "in parameter" in procedure)
Date: Wed, 8 Feb 2017 20:38:24 -0800 (PST)
Date: 2017-02-08T20:38:24-08:00 [thread overview]
Message-ID: <ce914880-959e-48c9-8ffc-7f14cd022ed6@googlegroups.com> (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
next reply other threads:[~2017-02-09 4:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 4:38 reinkor [this message]
2017-02-09 12:11 ` Test for constant (or "in parameter" in procedure) 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox