home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!noc.near.net!inmet!spock!stt
- From: stt@spock.camb.inmet.com (Tucker Taft)
- Subject: Re: Outputting quote marks
- Message-ID: <1992Nov21.033630.6060@inmet.camb.inmet.com>
- Sender: news@inmet.camb.inmet.com
- Nntp-Posting-Host: spock
- Organization: Intermetrics Inc, Cambridge MA
- References: <By13E7.4q5@plato.ds.boeing.com>
- Date: Sat, 21 Nov 1992 03:36:30 GMT
- Lines: 25
-
- 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.
-
- Try:
- Text_IO.Put_Line(""""""""); -- That's 2 + 3*2 = 8 quote marks
-
- Inside a string, two consecutive quote marks represent one quote
- mark. Hence, you should never have an odd number of quote
- marks in a string. See RM 2.6(3).
-
- >Bob Rosen
- >Boeing
- >rosen@goofy.ds.boeing.com
- >206-773-2852
-
- S. Tucker Taft stt@inmet.com
- Intermetrics, Inc.
- Cambridge, MA 02138
-