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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: What do you think about this? Date: Fri, 03 Jul 2015 20:17:58 +0100 Organization: A noiseless patient Spider Message-ID: References: <9894cde7-2cf8-4060-be65-857812ad7b09@googlegroups.com> <17436268-aceb-461f-bdcf-eee8436cd0e6@googlegroups.com> <86y4jaqzdx.fsf@stephe-leake.org> <86oak5qulb.fsf@stephe-leake.org> <86k2usq66p.fsf@stephe-leake.org> <864mllqv7c.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="9669"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+YCdquBXGy+spAgL7HeGbzs8qpkwj/n0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:Lz3vNEUBPQvG02F7aTx9BYoElXI= sha1:h4yxA4sYW/geanRafBb6hYx0zeo= Xref: news.eternal-september.org comp.lang.ada:26588 Date: 2015-07-03T20:17:58+01:00 List-Id: Laurent writes: > type String_Pointer is access all String; Or you could make this 'access constant String' (not sure this is Ada 95, though) > Prompt_1 : aliased String := "Enter a command >"; and this would be 'aliased constant String' > Prompt_Table : array (1 .. 4) of String_Pointer := > (Prompt_1'Access, Prompt_2'Access, > Prompt_3'Access, Prompt_4'Access); or you could say 'array (1 .. 4) of access constant String' and do away with type String_Pointer. In any case Prompt_Table can be 'constant array'. I believe that GNAT has special circuitry to place all these strings and Prompt_Table in ROM (i.e. no need for elaboration).