From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: problemn with string'last
Date: Sat, 6 May 2023 01:27:04 +0200 [thread overview]
Message-ID: <u343c8$2aep2$1@dont-email.me> (raw)
In-Reply-To: <ly4joq33ug.fsf@pushface.org>
On 2023-05-05 22:44, Simon Wright wrote:
> Manuel Gomez <mgrojo@gmail.com> writes:
>
>> El 5/5/23 a las 18:33, Simon Wright escribió:
>>> Manuel Gomez <mgrojo@gmail.com> 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
prev parent reply other threads:[~2023-05-05 23:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-05 9:51 problemn with string'last Daniel Gaudry
2023-05-05 10:02 ` Dmitry A. Kazakov
2023-05-05 11:17 ` Jeffrey R.Carter
2023-05-05 12:08 ` Dmitry A. Kazakov
2023-05-05 16:28 ` Manuel Gomez
2023-05-05 16:33 ` Simon Wright
2023-05-05 18:18 ` Manuel Gomez
2023-05-05 19:52 ` J-P. Rosen
2023-05-05 20:44 ` Simon Wright
2023-05-05 23:27 ` Jeffrey R.Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox