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,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!roadrunner.com!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> <1193674697.257242.163990@v23g2000prn.googlegroups.com> <1193678816.121187.265910@e34g2000pro.googlegroups.com> From: Keith Thompson Organization: None to speak of Date: Mon, 29 Oct 2007 15:34:23 -0700 Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:dDUzCPFnKec8e5Jz2fbiXw6HXZI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 75.80.183.54 X-Complaints-To: abuse@rr.com Xref: g2news2.google.com comp.lang.ada:2626 Date: 2007-10-29T15:34:23-07:00 List-Id: Adam Beneschan writes: > On Oct 29, 9:40 am, Robert A Duff > wrote: >> Adam Beneschan writes: >> > ... The semantics and result of 'Image are >> > well-defined by the language. If those semantics are acceptable for a >> > particular use, then there's nothing wrong with using 'Image (unless >> > there's an issue with using a secondary stack as Ludovic mentioned). >> >> True. But it's pretty annoying that: >> >> 'Image of integers includes an unwanted leading space. [...] > As for #1, I've often written my own function that declares a string S > whose value is 'Image and then returns S(S'First+1..S'Last) to get rid > of the leading space---this was before Trim functions became available > in Ada 95. I hope you check that the value is non-negative before deleting the first character. [...] > I believe GNAT does have an 'Img attribute that can be applied to an > object (although I assume you still need 'Image for certain types of > expressions that are not valid attribute prefixes). I don't know > whether this was ever proposed as a language addition, and if so why > it was rejected. GNAT's 'Img does the same leading-space thing that the standard 'Image does. -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"