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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3796c9f26082a2b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-31 07:50:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada has no continual line(s) ?? Date: 31 May 2002 07:50:24 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205310650.5d38b770@posting.google.com> References: <3cf652a0.31278796@news.demon.co.uk> <97xJ8.18262$wd3.3068622@news6-win.server.ntlworld.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022856625 15905 127.0.0.1 (31 May 2002 14:50:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 31 May 2002 14:50:25 GMT Xref: archiver1.google.com comp.lang.ada:25085 Date: 2002-05-31T14:50:25+00:00 List-Id: "hongxun lee" wrote in message news:... > this (is exactly my worry) works well.. > > > x :string := "One ring to blahdy blah, " > > & "One ring to blahdy blahdy blah, " > > & "One ring to blahdy blah and bla "; Actually this is a weakness in Ada. It is not always the case that you can replace a long string literal with several string literals concatenated together (it is interesting to leave this up to the reader to figure out when it fails :-) There really should have been a lexical convention for continuing long strings. An obvious one would simply be to say that you can break a long literal into two, e.g. replace "long string" by "long " whitespace "string". In practice the exceptional cases are rare, but still it is annoying to have nasty little exceptions like this.