comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: "strings are delimited by double quote character", where there's a character variable
Date: Fri, 1 Dec 2017 17:49:45 +0100
Date: 2017-12-01T17:49:45+01:00	[thread overview]
Message-ID: <ovs179$i3f$1@dont-email.me> (raw)
In-Reply-To: <8f8f88d8-b9f6-492e-991a-283509b21696@googlegroups.com>

On 12/01/2017 04:08 PM, Mehdi Saada wrote:
> C: Character := ''; -- strings are delimited by double quote character

'' is not a Character. It's not any legal Ada construct. The only place '' can 
occur in Ada is in a comment or a string literal.

Apparently the most common reason for '' that the GNAT error-message writers 
have seen is as a typo for "", hence the error message, which would be 
meaningful in such a case. Not very useful for someone who doesn't understand 
what a Character is.

-- 
Jeff Carter
"We call your door-opening request a silly thing."
Monty Python & the Holy Grail
17


  parent reply	other threads:[~2017-12-01 16:49 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 [this message]
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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox