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=-1.9 required=3.0 tests=BAYES_00,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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: problemn with string'last Date: Fri, 05 May 2023 21:44:55 +0100 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 Content-Transfer-Encoding: 8bit Injection-Info: dont-email.me; posting-host="1a3db257aaae033d3c0adfb8427bc6af"; logging-data="2628021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/k5wCVl7RvygL0ImSfKRvfXSz4j9wR4qk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:vRHrnviaRTTS8Y+/h5AEK1DeZ2E= sha1:/FF7m7Cz4vYqlyjrLVP8Fwb6nyI= Xref: news.eternal-september.org comp.lang.ada:65179 List-Id: Manuel Gomez writes: > El 5/5/23 a las 18:33, Simon Wright escribió: >> Manuel Gomez writes: >> >>> Or like this (doubling the quotes, which is the way to _escape_ the >>> double quote inside Ada strings): >>> >>> 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.