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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0310bb11aeb7260 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.42.163.65 with SMTP id b1mr6628335icy.2.1321466779163; Wed, 16 Nov 2011 10:06:19 -0800 (PST) Path: h5ni62000pba.0!nntp.google.com!news1.google.com!postnews.google.com!r9g2000vbw.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: GNAT 4.4.5 order of conditional processing? Date: Wed, 16 Nov 2011 09:52:17 -0800 (PST) Organization: http://groups.google.com Message-ID: <088d92d6-7b50-4556-9af4-aa63233a4092@r9g2000vbw.googlegroups.com> References: <8f003611-8375-4de7-bfd0-1d6b3f910c30@m13g2000prl.googlegroups.com> NNTP-Posting-Host: 192.91.147.35 Mime-Version: 1.0 X-Trace: posting.google.com 1321466778 21627 127.0.0.1 (16 Nov 2011 18:06:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 16 Nov 2011 18:06:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r9g2000vbw.googlegroups.com; posting-host=192.91.147.35; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Xref: news1.google.com comp.lang.ada:18941 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-11-16T09:52:17-08:00 List-Id: In this case, the short-circuit logic is necessary based on how the code has been structured. The first conditional, is to see if the simulation is done being initialized, the second and third conditionals are variables that won't be initialized with valid values until the initialization is complete. Before anyone jumps in to comment on how bad this approach is, I already know ;) but I'm dealing with porting code originally written 20 years ago. First step is to get it functional, second step is to fix/update it. :-) Thanks!