home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / ada / 3331 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.4 KB

  1. 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
  2. From: nebbe@lglsun.epfl.ch (Robb Nebbe)
  3. Newsgroups: comp.lang.ada
  4. Subject: Re: Outputting quote marks
  5. Message-ID: <1992Nov22.170456@lglsun.epfl.ch>
  6. Date: 22 Nov 92 16:04:56 GMT
  7. References: <By13E7.4q5@plato.ds.boeing.com> <1992Nov22.124601.4138@nobeltech.se>
  8. Sender: news@disuns2.epfl.ch
  9. Organization: Ecole Polytechnique Federale de Lausanne
  10. Lines: 23
  11. Nntp-Posting-Host: lglsun2.epfl.ch
  12.  
  13. In article <1992Nov22.124601.4138@nobeltech.se>, dawe@nobeltech.se (Daniel Wengelin) writes:
  14. |> In article <By13E7.4q5@plato.ds.boeing.com> rosen@plato.ds.boeing.com (Robert Rosen) writes:
  15. |> >I need to use Text_IO to output a string consisting of three
  16. |> >consecutive quote marks (""").  How can I do it?  Trying 
  17. |> >
  18. |> >  Text_IO.Put_Line (""""");
  19. |> >
  20. |> >produces a compilation error.
  21. |> >
  22. |> >Bob Rosen
  23. |> >Boeing
  24. |> >rosen@goofy.ds.boeing.com
  25. |> >206-773-2852
  26. |> 
  27. |> 
  28. |> Try Put_Line(%"""%); It works fine on my Rat, and is much more 
  29. |> readable than a large number of quotation characters (LRM 2.10).
  30.  
  31. If you read LRM 2.10 a little closer you will see that %"""% should be
  32. illegal for any Ada compiler LRM 2.10(4) However you are right about it
  33. being much more readable and it probably should be legal.
  34.  
  35. Robb Nebbe                     nebbe@lglsun.epfl.ch
  36.