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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada++ Date: Fri, 29 May 2020 13:00:16 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <50711230-5b14-4278-b9d8-d197bbe3c93b@googlegroups.com> <9320040f-5486-4d1e-847d-f81b0a59fcfa@googlegroups.com> <188c7ade-b9ce-4bd7-8752-64e0c8a3a0f2@googlegroups.com> <94b7b004-6d12-4586-b1d0-cb2a21ac52f0@googlegroups.com> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:58866 Date: 2020-05-29T13:00:16+02:00 List-Id: On 29/05/2020 12:27, Jeffrey R. Carter wrote: > On 5/29/20 11:43 AM, raph.amiard@gmail.com wrote: >> >> Every time you want to embed a multi line string in an Ada app you >> need to go through this frankly annoying gymnastics. > > A S/W engineer, when encountering "frankly annoying gymnastics" a 2nd > time, creates an abstraction to hide the "frankly annoying gymnastics", > and so never has to go through the "frankly annoying gymnastics" ever > again. Which BTW was, at least partially, done by AdaCore as the comment preceding the string constant in the cited source code reads: "The content of the following string literal has been generated running GNAT with flag -gnatS, and then post-processed by hand." How, e.g. images are supposed to be literally embedded in the code is beyond me. So for my projects I wrote a few lines Ada code generator that creates a nice Ada package per image. No need to read its content ever. Even embedding text content is a non-starter beyond a few toy cases, because of formatting, markup, Unicode, fonts and thousands other issues. Literal text is pretty much non-existent thing. Typewriter times are gone. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de