From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,af338c8f6c9b0990 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!in.100proofnews.com!in.100proofnews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 01 Dec 2004 18:28:24 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: Subject: Re: escaping long lines Date: Wed, 1 Dec 2004 18:29:41 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-VGOfjSvWWTXtbDLWiY/JDz2KfLbv20RoOF1WA3fD/S7fhYHoShnxhglYDb4pBFxiaCu1J7lmnna6xB4!7oyLcCElaX/AMoS3kJmH2v1f0NmeykpaNVrVWUR90Clr3pFbYtxZq2FamNExPcDcRU12J5D+D6WN X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.20 Xref: g2news1.google.com comp.lang.ada:6706 Date: 2004-12-01T18:29:41-06:00 List-Id: "Jens Kubieziel" wrote in message news:coll8h$pho$1@qbiathome.news.kubieziel.de... > Hi, > > assume I have a large line like: > TYPE enum1 is (aa, bb, cc, dd, ...); > or > Put("This is a reaaaaaaaaaaaaaaaaaaaaaaaaallllllllllyyyyyyyy long output"); > which is more than 80 chars. > How can I escape those long lines? I'm looking for something like "\" in > shell syntax or a "%" in LaTeX. There aren't any escapes in Ada. Ada compilers should support lines of 200 characters (see 2.2(14)) so it's not necessary to break lines just because they've reached 80 characters. But if you still want to, just concatenate the parts together. Put("This is a reaaaaaaaaaaaaaaaaaaaaaaaaallllllllll" & "yyyyyyyy long output"); String literals are static, so all compilers have to combine them at compile time -- so using the "&" operator has no runtime cost. As usual, say what you want, and trust the Ada compiler to generate the best code. Randy.