home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!chx400!sicsun!disuns2!lglsun!nebbe
- From: nebbe@lglsun.epfl.ch (Robb Nebbe)
- Newsgroups: comp.lang.ada
- Subject: Re: Outputting quote marks
- Message-ID: <1992Nov22.170456@lglsun.epfl.ch>
- Date: 22 Nov 92 16:04:56 GMT
- References: <By13E7.4q5@plato.ds.boeing.com> <1992Nov22.124601.4138@nobeltech.se>
- Sender: news@disuns2.epfl.ch
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 23
- Nntp-Posting-Host: lglsun2.epfl.ch
-
- 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
-