From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: inefficiency of GCC output code & -O problem Date: Thu, 20 Apr 2000 10:10:52 +0400 Organization: MTU-Intel ISP Lines: 39 Message-ID: <38FE9F6C.C7904A3D@mtu-net.ru> References: <38F9D717 DOT 9438A3F6 AT mtu-net DOT ru> <8df84a DOT 3vvqu6v DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38FB4094 DOT DE7B5F4C AT mtu-net DOT ru> <8dfum2 DOT 3vvqu6v DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38FB7858 DOT 41B090DB AT mtu-net DOT ru> <8dh6kr DOT 3vvqvqr DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38FC0E77 DOT 904B12BE AT mtu-net DOT ru> <8dibun DOT 3vvqvqr DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <38FDCD15 DOT 7BC68C13 AT mtu-net DOT ru> <38FE9B26 DOT A0D244EE AT unb DOT ca> NNTP-Posting-Host: ppp108-17.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 956212090 39950 212.188.108.17 (20 Apr 2000 06:28:10 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 20 Apr 2000 06:28:10 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Endlisnis wrote: > But, in C, if you try: > > if(expr) { > func(); > func(); > }; /* <--- */ > else > func(); > > You will get a parse error. Actually, I know that. :) Pascal syntax doesnt have any semicolons between IF and ELSE: IF something THEN operator1 ELSE operator2; Both operators may be either simple or composite. Semicolon is not needed here. In C we have different situation: if (something) operator1; else operator2; and if (something) { do_something(); } else operator2; I dislike this. :(( bye. Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru