Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Happiness is a hard disk.


devel / comp.lang.ada / Re: problemn with string'last

SubjectAuthor
* problemn with string'lastDaniel Gaudry
+- Re: problemn with string'lastDmitry A. Kazakov
`* Re: problemn with string'lastJeffrey R.Carter
 +- Re: problemn with string'lastDmitry A. Kazakov
 `* Re: problemn with string'lastManuel Gomez
  `* Re: problemn with string'lastSimon Wright
   `* Re: problemn with string'lastManuel Gomez
    +- Re: problemn with string'lastJ-P. Rosen
    `* Re: problemn with string'lastSimon Wright
     `- Re: problemn with string'lastJeffrey R.Carter

1
problemn with string'last

<2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9574&group=comp.lang.ada#9574

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:587:b0:3ea:3d30:af91 with SMTP id c7-20020a05622a058700b003ea3d30af91mr304889qtb.1.1683280314354;
Fri, 05 May 2023 02:51:54 -0700 (PDT)
X-Received: by 2002:a81:d44d:0:b0:55a:3c6c:773a with SMTP id
g13-20020a81d44d000000b0055a3c6c773amr564820ywl.4.1683280314079; Fri, 05 May
2023 02:51:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 5 May 2023 02:51:53 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:861:3006:e580:9db1:4b31:7d62:8355;
posting-account=I_eLtQoAAAA-qV4zTYNhsy2EmfPsGcSc
NNTP-Posting-Host: 2001:861:3006:e580:9db1:4b31:7d62:8355
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
Subject: problemn with string'last
From: gaudry.dg@gmail.com (Daniel Gaudry)
Injection-Date: Fri, 05 May 2023 09:51:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1920
 by: Daniel Gaudry - Fri, 5 May 2023 09:51 UTC

hi,
here is a code that i simplified

with Ada.Text_Io;
procedure Help
is
Double_Quote : constant String(1 .. 1) := (others => '"' );
Data : constant String := " PLUS_STRING : CONSTANT STRING(1..3) :=(1 =>'" & Double_Quote & "' , 2 =>'+' , 3 =>'" & Double_Quote & ");";
begin
Ada.Text_Io.Put_Line(" 05 10 15 20 25 30 35 40 45 50 55 65 70 75 80 85 90");
Ada.Text_Io.Put_Line(" ....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!");
Ada.Text_Io.Put_Line("»" & Data & "« " & Data'Last'Img);
end Help;

but the data'last seems not to match the string size

Any help is welcome
best regards

Re: problemn with string'last

<u32k6q$28c34$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9575&group=comp.lang.ada#9575

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 12:02:02 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u32k6q$28c34$1@dont-email.me>
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 10:02:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a821bf7691719301ca9d9a37230ed4e3";
logging-data="2371684"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184bMEJLNjQEt4HIN0PiKcHCR7Z2QF21Qc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:ntXT9LR4Qkm647z4W7h8VGRJFzk=
In-Reply-To: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 5 May 2023 10:02 UTC

On 2023-05-05 11:51, Daniel Gaudry wrote:

> here is a code that i simplified
>
> with Ada.Text_Io;
> procedure Help
> is
> Double_Quote : constant String(1 .. 1) := (others => '"' );
> Data : constant String := " PLUS_STRING : CONSTANT STRING(1..3) :=(1 =>'" & Double_Quote & "' , 2 =>'+' , 3 =>'" & Double_Quote & ");";
> begin
>
> Ada.Text_Io.Put_Line(" 05 10 15 20 25 30 35 40 45 50 55 65 70 75 80 85 90");
> Ada.Text_Io.Put_Line(" ....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!");
> Ada.Text_Io.Put_Line("»" & Data & "« " & Data'Last'Img);
>
> end Help;
>
> but the data'last seems not to match the string size

It matches. You missed the "60" tick in your scale. (:-))

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: problemn with string'last

<u32okt$2aep1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9576&group=comp.lang.ada#9576

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spam.jrcarter.not@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 13:17:49 +0200
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <u32okt$2aep1$1@dont-email.me>
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 11:17:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ff5db5f91a086dc243442759fe56ad04";
logging-data="2439969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ap7SKaJ2QkSi2My9nB+7gwCgWx7PqyaQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:9YEwO5jQamNAbWytns+tz4jSIgM=
Content-Language: en-US
In-Reply-To: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
 by: Jeffrey R.Carter - Fri, 5 May 2023 11:17 UTC

On 2023-05-05 11:51, Daniel Gaudry wrote:
>
> Ada.Text_Io.Put_Line(" 05 10 15 20 25 30 35 40 45 50 55 65 70 75 80 85 90");
> Ada.Text_Io.Put_Line(" ....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!....|....!");
> Ada.Text_Io.Put_Line("»" & Data & "« " & Data'Last'Img);

As Kazakov pointed out, your scale is incorrect.

However, it's important to remember that 'Last is not necessarily the same as
'Length because 'First is not necessarily one. This is especially important in
subprograms that take String parameters, as they are often passed slices.

Some questions:

> Double_Quote : constant String(1 .. 1) := (others => '"' );

ARM 2.1(15/3)
(http://www.ada-auth.org/standards/aarm12_w_tc1/html/AA-2-1.html#I1199) defines
the name of '"' as "quotation mark". Why do you refer to a single quotation mark
as Double_Quote?

> Data : constant String := " PLUS_STRING : CONSTANT STRING(1..3) :=(1 =>'" & Double_Quote & "' , 2 =>'+' , 3 =>'" & Double_Quote & ");";

Wouldn't it be simpler and clearer to write this as

Data : constant String := " PLUS_STRING : CONSTANT STRING := " & '"' & '+' & '"';

? Note also that you seem to be missing an apostrophe (''') before the right
parenthesis if you intend Data to be a valid Ada declaration.

--
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

Re: problemn with string'last

<u32rj6$28c34$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9577&group=comp.lang.ada#9577

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 14:08:06 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u32rj6$28c34$2@dont-email.me>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 5 May 2023 12:08:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a821bf7691719301ca9d9a37230ed4e3";
logging-data="2371684"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4R81AI3CxoJ68/Gu6thKy7cAY9AG75n4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Cancel-Lock: sha1:pbpeISn1B4NQPw/RYH3om10XJ48=
Content-Language: en-US
In-Reply-To: <u32okt$2aep1$1@dont-email.me>
 by: Dmitry A. Kazakov - Fri, 5 May 2023 12:08 UTC

On 2023-05-05 13:17, Jeffrey R.Carter wrote:

> However, it's important to remember that 'Last is not necessarily the
> same as 'Length because 'First is not necessarily one. This is
> especially important in subprograms that take String parameters, as they
> are often passed slices.

Non-sliding indices is one of the most useful Ada features. You can pass
indices around as-is, which is extremely helpful when processing strings.

You will also find that actually 'Length and 'Last have different types,
which is quite useful as well.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: problemn with string'last

<u33asa$2dofj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9578&group=comp.lang.ada#9578

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mgrojo@gmail.com (Manuel Gomez)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 18:28:58 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <u33asa$2dofj$1@dont-email.me>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 5 May 2023 16:28:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7dfd34a0abe1f3dde8151dc7187d13f";
logging-data="2548211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++mFAqe3ewUIXsnAzFI/Vs"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:/deN5R0SPFpqKxkok3T2/cwQXVU=
In-Reply-To: <u32okt$2aep1$1@dont-email.me>
Content-Language: es-HN
 by: Manuel Gomez - Fri, 5 May 2023 16:28 UTC

El 5/5/23 a las 13:17, Jeffrey R.Carter escribió:
> On 2023-05-05 11:51, Daniel Gaudry wrote:
>>    Data         : constant String         := "  PLUS_STRING    :
>> CONSTANT STRING(1..3) :=(1 =>'" & Double_Quote & "' , 2 =>'+' , 3 =>'"
>> & Double_Quote & ");";
>
> Wouldn't it be simpler and clearer to write this as
>
> Data : constant String := "  PLUS_STRING : CONSTANT STRING := " & '"' &
> '+' & '"';
>
> ? Note also that you seem to be missing an apostrophe (''') before the
> right parenthesis if you intend Data to be a valid Ada declaration.
>

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 =>'""');";

Re: problemn with string'last

<lybkiysppt.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9579&group=comp.lang.ada#9579

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 05 May 2023 17:33:18 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <lybkiysppt.fsf@pushface.org>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me> <u33asa$2dofj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1a3db257aaae033d3c0adfb8427bc6af";
logging-data="2554413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FyhuxBQaNhCfhi8d1ZtUneNGebH/HT7g="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
Cancel-Lock: sha1:WuTCWDLCZi+zVHVwyD2erfhqC5Y=
sha1:ch5R6oDwFNEyHWehx9SeKnlcdCA=
 by: Simon Wright - Fri, 5 May 2023 16:33 UTC

Manuel Gomez <mgrojo@gmail.com> 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.

Re: problemn with string'last

<u33h9k$2eqo6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9580&group=comp.lang.ada#9580

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mgrojo@gmail.com (Manuel Gomez)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 20:18:27 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <u33h9k$2eqo6$1@dont-email.me>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me> <u33asa$2dofj$1@dont-email.me>
<lybkiysppt.fsf@pushface.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 5 May 2023 18:18:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b7dfd34a0abe1f3dde8151dc7187d13f";
logging-data="2583302"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WtCpk6GAlw0zHwNnS/Ih7"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:8gaFL6L7syW0TJ6EM+GPnyQPCQA=
In-Reply-To: <lybkiysppt.fsf@pushface.org>
Content-Language: es-HN
 by: Manuel Gomez - Fri, 5 May 2023 18:18 UTC

El 5/5/23 a las 18:33, Simon Wright escribió:
> Manuel Gomez <mgrojo@gmail.com> 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).

Re: problemn with string'last

<u33mq6$2fmrb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9581&group=comp.lang.ada#9581

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rosen@adalog.fr (J-P. Rosen)
Newsgroups: comp.lang.ada
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 21:52:38 +0200
Organization: Adalog
Lines: 14
Message-ID: <u33mq6$2fmrb$1@dont-email.me>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me> <u33asa$2dofj$1@dont-email.me>
<lybkiysppt.fsf@pushface.org> <u33h9k$2eqo6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 5 May 2023 19:52:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6736f01c60268cd99479e9097f582d7e";
logging-data="2612075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9JqAwbJV1PrF09AJQXs3D"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:/pzeQYBtZ+D6jn+WvVaaBbex8cc=
In-Reply-To: <u33h9k$2eqo6$1@dont-email.me>
Content-Language: en-US, fr
 by: J-P. Rosen - Fri, 5 May 2023 19:52 UTC

Le 05/05/2023 à 20:18, Manuel Gomez a écrit :
> Yes, and "'""'" is a string containing a quote as an Ada character (when
> displayed).

Even more fun (I use this for people who write a naive Ada parser):
subtype C is Character;
V : String := C'(')')'Img;

--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr

Re: problemn with string'last

<ly4joq33ug.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9582&group=comp.lang.ada#9582

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (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
Lines: 17
Message-ID: <ly4joq33ug.fsf@pushface.org>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me> <u33asa$2dofj$1@dont-email.me>
<lybkiysppt.fsf@pushface.org> <u33h9k$2eqo6$1@dont-email.me>
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=
 by: Simon Wright - Fri, 5 May 2023 20:44 UTC

Manuel Gomez <mgrojo@gmail.com> writes:

> El 5/5/23 a las 18:33, Simon Wright escribió:
>> Manuel Gomez <mgrojo@gmail.com> 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.

Re: problemn with string'last

<u343c8$2aep2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9583&group=comp.lang.ada#9583

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: spam.jrcarter.not@spam.acm.org.not (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
Lines: 28
Message-ID: <u343c8$2aep2$1@dont-email.me>
References: <2bc1705c-7802-4e89-960f-9b566d376f3cn@googlegroups.com>
<u32okt$2aep1$1@dont-email.me> <u33asa$2dofj$1@dont-email.me>
<lybkiysppt.fsf@pushface.org> <u33h9k$2eqo6$1@dont-email.me>
<ly4joq33ug.fsf@pushface.org>
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: <ly4joq33ug.fsf@pushface.org>
Content-Language: en-US
 by: Jeffrey R.Carter - Fri, 5 May 2023 23:27 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor