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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6e97963d32ee242 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-25 07:40:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc04.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <254c16a.0305210726.485125de@posting.google.com> <1JYza.7047$ca5.5487@nwrdny02.gnilink.net> Subject: Re: The old "Object.Method" syntax debate X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1053873652 12.211.13.75 (Sun, 25 May 2003 14:40:52 GMT) NNTP-Posting-Date: Sun, 25 May 2003 14:40:52 GMT Organization: AT&T Broadband Date: Sun, 25 May 2003 14:40:52 GMT Xref: archiver1.google.com comp.lang.ada:37760 Date: 2003-05-25T14:40:52+00:00 List-Id: "Hyman Rosen" wrote in message news:1JYza.7047$ca5.5487@nwrdny02.gnilink.net... > Steve wrote: > > Pascal and C/C++ have two forms of "if" statements, one where the "if" is > > followed by a single line, the other where the "if" is followed by a block. > > C and C++ have one form of "if" statement, whose syntax is > if ( ) [ else ] > (where the () are literal but the [] indicate optional :-) > While you're technically correct, because C/C++ describe a statement as either a single line or a block, in my opinion they're really two forms of an if statement. if( x != 42 ) { DoSomething(); } Appears (to me) to be a different form from if( x != 42 ) DoSomething(); Where Ada only has one form: if x /= 42 then DoSomething; end if; Steve (The Duck)