delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/20/02:00:04

From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
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: <Pine DOT LNX DOT 4 DOT 10 DOT 10004161837540 DOT 1138-100000 AT darkstar DOT grendel DOT net> <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
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019