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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,715875e575230543 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-21 14:08:23 PST Path: archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mail From: "Stephane Richard" 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: Date: Tue, 21 Oct 2003 21:08:22 GMT NNTP-Posting-Host: 129.44.82.123 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1066770502 129.44.82.123 (Tue, 21 Oct 2003 17:08:22 EDT) NNTP-Posting-Date: Tue, 21 Oct 2003 17:08:22 EDT Xref: archiver1.google.com comp.lang.ada:1324 Date: 2003-10-21T21:08:22+00:00 List-Id: "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 > I'm canadian and that code made me chuckle too ;-). The programmer much have read how to handle the enumeration type first, then read about the Boolean type being an enumeration of True and False maybe? ;-). -- St�phane Richard "Ada World" Webmaster http://www.adaworld.com