From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: "strings are delimited by double quote character", where there's a character variable Date: Fri, 1 Dec 2017 17:49:45 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <8f8f88d8-b9f6-492e-991a-283509b21696@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 1 Dec 2017 16:49:45 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="bb7db6b7e5649449c49eca88698b05bb"; logging-data="18543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18R/kLoejkXVfjA3mdqR8Ny/WgO5lXkR9Q=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 In-Reply-To: <8f8f88d8-b9f6-492e-991a-283509b21696@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:qVi1bUSgKPQOJazC5VP6AiQgnck= Xref: reader02.eternal-september.org comp.lang.ada:49308 Date: 2017-12-01T17:49:45+01:00 List-Id: 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