From: Keith Thompson <kst-u@mib.org>
Subject: Re: "strings are delimited by double quote character", where there's a character variable
Date: Tue, 05 Dec 2017 13:45:49 -0800
Date: 2017-12-05T13:45:49-08:00 [thread overview]
Message-ID: <lnzi6wu9v6.fsf@kst-u.example.com> (raw)
In-Reply-To: 1b00c77a-4710-4a97-abac-f3407311bc38@googlegroups.com
Shark8 <onewingedshark@gmail.com> writes:
> On Friday, December 1, 2017 at 8:08:41 AM UTC-7, Mehdi Saada wrote:
>> I got a a Character variable gnat says it is a String, while
>> functions taking it as parameter take only Characters. Mentions of
>> the variable in the procedure:
>> C: Character := ''; -- strings are delimited by double quote character
>> while C /= '' loop
>> Get(C); PUSH(C);
>> end loop;
>> while (C /= '') loop -- same here
>> Get(C);
>> PUSH(C);
>> end loop;
>
> The character you are using is referred to in Ada as "Apostrophe" (See
> Package Ada.Characters.Latin_1) the character referred to as a
> double-quote character is "Quotation". -- Respectively, these are
> Character'(''') and Character'('"').
It's not an apostrophe, it's a syntax error, and it doesn't refer to any
character value.
''' -- apostrophe character
'' -- syntax error
"" -- empty string
"'" -- string containing a single apostrophe
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
prev parent reply other threads:[~2017-12-05 21:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 15:08 "strings are delimited by double quote character", where there's a character variable Mehdi Saada
2017-12-01 16:38 ` A. Cervetti
2017-12-01 16:43 ` AdaMagica
2017-12-01 16:49 ` Jeffrey R. Carter
2017-12-01 18:13 ` Mehdi Saada
2017-12-01 17:23 ` Dennis Lee Bieber
2017-12-01 17:44 ` Dennis Lee Bieber
2017-12-01 19:09 ` Shark8
2017-12-05 21:45 ` Keith Thompson [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