From: noc.near.net!inmet!spock!stt@uunet.uu.net (Tucker Taft)
Subject: Re: Outputting quote marks
Date: 21 Nov 92 03:36:30 GMT [thread overview]
Message-ID: <1992Nov21.033630.6060@inmet.camb.inmet.com> (raw)
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
next reply other threads:[~1992-11-21 3:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-11-21 3:36 Tucker Taft [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-11-20 22:31 Outputting quote marks cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox