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: Building an encapsulated library that uses GNAT sockets under Windows Date: Tue, 26 Apr 2016 15:32:21 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <58a4942a-452a-4f32-b39b-f8f1fdbfe9fb@googlegroups.com> <68353b5d-94dc-4604-bdb1-00b48396ec1b@googlegroups.com> <33e880a1-df5f-450c-89e0-9b1d1a95e12f@googlegroups.com> <6c3cb21b-f729-4599-afb0-793c8b8fc2b8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Apr 2016 22:29:01 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="48b46be33beed75863f69afa437f956b"; logging-data="2566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QMF9cudYSLMKsSD3zjEcal6LZKbaNKyI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: Cancel-Lock: sha1:bXmxAJA7TNTxv+6p/mSgJ259iA8= Xref: news.eternal-september.org comp.lang.ada:30296 Date: 2016-04-26T15:32:21-07:00 List-Id: On 04/26/2016 12:43 PM, ahlan.marriott@gmail.com wrote: > > At the same time you might like to suggest that they remove the gotos from the code! > These caused me lots of problems because our IDE prohibits gotos. > Who in their right mind uses gotos? > In the late seventies we were taught that gotos were evil and never to be used yet here they are, three and a half decades later, still using them - what a disgrace - have people no shame? ;-) Goto is sometimes a good idea; for example, when translating STDs, using goto for the transitions is often advocated to encode the state in the program counter. In most other cases, though, goto is usually not needed and less clear than the alternatives. -- Jeff Carter "Of course, one couldn't think properly in Paris-- it was so uncomfortable and the houses were central heated." Clouds of Witness 153