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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,715875e575230543 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-21 19:57:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: Thought this was funny X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1066791438 12.211.13.75 (Wed, 22 Oct 2003 02:57:18 GMT) NNTP-Posting-Date: Wed, 22 Oct 2003 02:57:18 GMT Organization: Comcast Online Date: Wed, 22 Oct 2003 02:57:18 GMT Xref: archiver1.google.com comp.lang.ada:1359 Date: 2003-10-22T02:57:18+00:00 List-Id: It's hard to say, but maybe the compiler generated better code for a case statement than an if statement? I know I have resorted to funny looking sources based on funny stuff the compiler does (including working around compiler bugs)... generally accompanied by a comment to that effect. Steve (The Duck) "Xenos" wrote in message news:bn42kf$ca3@cui1.lmms.lmco.com... > Reviewing some old code we are converting from Ada 83 to 95, I came across > this: > > case is > when true => > > > when false => > > > end case; > > > Kind of made me chuckle a little. The guy how wrote it is Canadian, so I > took to calling it the "Canadian If Statement" (not in a cruel way). > > > DrX > >