home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!mcsun!sunic!nobeltech!dawe
- From: dawe@nobeltech.se (Daniel Wengelin)
- Subject: Re: Outputting quote marks
- Message-ID: <1992Nov23.195807.26767@nobeltech.se>
- Organization: NobelTech AB
- References: <By13E7.4q5@plato.ds.boeing.com> <1992Nov22.124601.4138@nobeltech.se> <1992Nov22.170456@lglsun.epfl.ch>
- Date: Mon, 23 Nov 1992 19:58:07 GMT
- Lines: 58
-
- In article <1992Nov22.170456@lglsun.epfl.ch> nebbe@lglsun.epfl.ch (Robb Nebbe) writes:
- >In article <1992Nov22.124601.4138@nobeltech.se>, dawe@nobeltech.se (Daniel Wengelin) writes:
- >|> In article <By13E7.4q5@plato.ds.boeing.com> rosen@plato.ds.boeing.com (Robert Rosen) writes:
- >|> >I need to use Text_IO to output a string consisting of three
- >|> >consecutive quote marks ("""). How can I do it? Trying
- >|> >
- >|> > Text_IO.Put_Line (""""");
- >|> >
- >|> >produces a compilation error.
- >|> >
- >|> >Bob Rosen
- >|> >Boeing
- >|> >rosen@goofy.ds.boeing.com
- >|> >206-773-2852
- >|>
- >|>
- >|> Try Put_Line(%"""%); It works fine on my Rat, and is much more
- >|> readable than a large number of quotation characters (LRM 2.10).
- >
- >If you read LRM 2.10 a little closer you will see that %"""% should be
- >illegal for any Ada compiler LRM 2.10(4) However you are right about it
- >being much more readable and it probably should be legal.
- >
- >Robb Nebbe nebbe@lglsun.epfl.ch
-
-
-
-
- How true, how true. I am beginning to realize that the Rational is
- sometimes more user-friendly than I deserve, which may definitely
- cause these results when replying in a "only read LRM if test fails"-
- mode.
-
- The Rational behaviour does however raise a question. What the Rat
- does is to reformat the (%"""%) into the valid ("""""") (hope I got
- that one right) automatically. I never saw it happen when I tried
- it out.
-
- Is this a strictly legal behaviour of an APSE? If I enter
- PUT(%"""%); and compile, I would expect LRM2.10(4) to
- require an error, but instead the APSE silently changes
- my source to something legal. Any LRM-lawyer has a comment?
-
-
- Daniel
-
-
- ----------------------------------------------------------------
- ! with Standard_Disclaimer; !
- ----------------------------------------------------------------
- ! Daniel Wengelin ! E-mail: dawe@nobeltech.se !
- ! Systems analysis and design ! Phone : +46 8 58084000 !
- ! NobelTech Systems ! Fax : +46 8 58081542 !
- ! Naval Systems Division ! Mail : S-17588 Jarfalla !
- ! ! SWEDEN !
- ----------------------------------------------------------------
- ! NobelTech: Winner of the -92 Ada Industry Leadership Award !
- ----------------------------------------------------------------
-