From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Nov 92 03:36:30 GMT From: noc.near.net!inmet!spock!stt@uunet.uu.net (Tucker Taft) Subject: Re: Outputting quote marks Message-ID: <1992Nov21.033630.6060@inmet.camb.inmet.com> List-Id: In article 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