From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.95.18 with SMTP id t18mr365641pgb.164.1486615104928; Wed, 08 Feb 2017 20:38:24 -0800 (PST) X-Received: by 10.157.39.202 with SMTP id c68mr39672otb.8.1486615104876; Wed, 08 Feb 2017 20:38:24 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!r185no402348ita.0!news-out.google.com!78ni1240itm.0!nntp.google.com!r185no402346ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 8 Feb 2017 20:38:24 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.167.212.153; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 85.167.212.153 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Test for constant (or "in parameter" in procedure) From: reinkor Injection-Date: Thu, 09 Feb 2017 04:38:24 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:33278 Date: 2017-02-08T20:38:24-08:00 List-Id: Hi, is it a good way to test if an object is a constant or not (or "in paramete= r" 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 somet= imes help to structure/optimize the code. I would like to have some redunda= ncy 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 i= s 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 ma= ny people are involved to change code over time. reinert