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 14:22:40 PST Message-ID: <3ED133C6.FF48EFBB@somewhere.nil> Date: Sun, 25 May 2003 23:21:10 +0200 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: The old "Object.Method" syntax debate References: <254c16a.0305210726.485125de@posting.google.com> <1JYza.7047$ca5.5487@nwrdny02.gnilink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.218.94.139 X-Trace: news.swissonline.ch 1053897755 80.218.94.139 (25 May 2003 23:22:35 +0200) X-Complaints-To: abuse@swissonline.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!newsfeed.r-kom.de!news-nue1.dfn.de!uni-erlangen.de!news.imp.ch!news.imp.ch!news-zh.switch.ch!news.swissonline.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:37770 Date: 2003-05-25T23:21:10+02:00 List-Id: > > C and C++ have one form of "if" statement, whose syntax is > > if ( ) [ else ] > > (where the () are literal but the [] indicate optional :-) Steve: > 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. [...] Stop! There is only one form: a block is also an instruction. The joke is that C and Pascal await at most *one* instruction after "then" and "else". It is a design blunder, of course, since most of the time you have more than one instruction. As a consequence, in C and Pascal, you *must* bracket them inside a block by {..} or begin..end . It looks like a second form since it is so frequent, but it isn't. Fortunately most language designs since 1970 (even Fortran 77 and structured Basic's!) forsee several instructions for loops and conditions. ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!