Groups | Search | Server Info | Login | Register
Groups > comp.lang.ada > #49502
| Newsgroups | comp.lang.ada |
|---|---|
| From | ldries46 <bertus.dries@planet.nl> |
| Subject | Is there a way to see if a value is declared as a constant |
| Date | 2021-09-13 19:08 +0200 |
| Message-ID | <nnd$38993e8c$31c2bc63@28832d745e09e0f7> (permalink) |
| Organization | KPN B.V. |
I have a set of constants that need a different name each for readability. It may not be an array. For instance: C1 : constant record_item := ..... C2 : constant record_item := ..... C3 : constant record_item := ..... C4 : constant record_item := ..... C5 : constant record_item := ..... Now in a procedure or a function I have to use one of these constants for instance: function X(C : record_item) return record_Item is RI : record_item; begin .. .. RI := C -- This C may only be one of the five constants and not another record_item .. .. return RI; end X; In what way do I test if C is a constant and not another record Item
Back to comp.lang.ada | Previous | Next — Next in thread | Find similar
Is there a way to see if a value is declared as a constant ldries46 <bertus.dries@planet.nl> - 2021-09-13 19:08 +0200
Re: Is there a way to see if a value is declared as a constant Björn Lundin <b.f.lundin@gmail.com> - 2021-09-13 19:27 +0200
Re: Is there a way to see if a value is declared as a constant "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> - 2021-09-13 20:48 +0200
Re: Is there a way to see if a value is declared as a constant "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-13 21:00 +0200
Re: Is there a way to see if a value is declared as a constant ldries46 <bertus.dries@planet.nl> - 2021-09-14 08:47 +0200
Re: Is there a way to see if a value is declared as a constant Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-13 23:58 -0700
Re: Is there a way to see if a value is declared as a constant Shark8 <onewingedshark@gmail.com> - 2021-09-14 16:47 -0700
Re: Is there a way to see if a value is declared as a constant ldries46 <bertus.dries@planet.nl> - 2021-09-18 07:54 +0200
csiph-web