* Re: Outputting quote marks
@ 1992-11-20 22:31 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!
0 siblings, 0 replies; 2+ messages in thread
From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com! @ 1992-11-20 22:31 UTC (permalink / raw)
Robert Rosen (rosen@plato.ds.boeing.com) wrote:
: 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 this...
Text_Io.Put_Line (<some-string> & Ascii.Quotation & <other-string>);
Thomas Vachuska
------------------------------------------------------------------------------
tom@mothra.rose.hp.com (916)-785-4983 (Telnet & Voice Mail)
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Outputting quote marks
@ 1992-11-21 3:36 Tucker Taft
0 siblings, 0 replies; 2+ messages in thread
From: Tucker Taft @ 1992-11-21 3:36 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1992-11-21 3:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-11-21 3:36 Outputting quote marks Tucker Taft
-- strict thread matches above, loose matches on Subject: below --
1992-11-20 22:31 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox