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!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: GNAT.Serial_Communication and Streams Date: Tue, 24 Nov 2015 09:09:44 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Nov 2015 16:07:24 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="5614"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182oeGqNbjU7l6Hm4bb2S90iqSdphDSBYY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-Mozilla-News-Host: news://freenews.netfront.net Cancel-Lock: sha1:07DACD26Xho7ZRBBISBw2eWSp5s= Xref: news.eternal-september.org comp.lang.ada:28521 Date: 2015-11-24T09:09:44-07:00 List-Id: On 11/23/2015 06:29 PM, Randy Brukardt wrote: > > Probably works on GNAT, but it's not portable Ada code. For one thing, it > assumes that Implementation Advice 13.3(14) is followed (Janus/Ada does not > follow that advice - after all, it is just advice, not a requirement). It > also assumes that Local is not optimized at all (there is advice that Output > not be optimized, but that doesn't apply to Local, and like all advice, it > can be ignored). > > Might not matter in this case (which is clearly GNAT-specific), but > generally this is a pattern to avoid. I agree, but since the OP was clearly writing GNAT-specific code, I saw no problem with giving GNAT-specific advice. -- Jeff Carter "Now look, Col. Batguano, if that really is your name." Dr. Strangelove 31