From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: problemn with string'last Date: Sat, 6 May 2023 01:27:04 +0200 Organization: A noiseless patient Spider Message-ID: References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 5 May 2023 23:27:04 -0000 (UTC) Injection-Info: dont-email.me; posting-host="b94ec174a98cf38d322671389cbec512"; logging-data="2439970"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+Nn7t+eqZ0MeDcisWxah9mf0BIY9n6UY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cancel-Lock: sha1:/NkW8f353GunB3O++sg3Mgz0AgY= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65180 List-Id: On 2023-05-05 22:44, Simon Wright wrote: > Manuel Gomez writes: > >> El 5/5/23 a las 18:33, Simon Wright escribió: >>> Manuel Gomez writes: >>> >>>> Data : constant String := " PLUS_STRING : >>>> CONSTANT STRING(1..3) :=(1 =>'""' , 2 =>'+' , 3 =>'""');"; >>> '"' is a single quote character. >>> """" is a string containing one quote character. >> >> Yes, and "'""'" is a string containing a quote as an Ada character >> (when displayed). > > Oh, I see. Ugh. As you have discovered, using doubled quotation marks within a String literal can be significantly less clear than concatenating the quotation-mark Character with the rest of the String. -- Jeff Carter "All citizens will be required to change their underwear every half hour. Underwear will be worn on the outside, so we can check." Bananas 29