| delorie.com/archives/browse.cgi | search |
"Alexei A. Frounze" wrote:
> > >> > };
> > >> ^
> > >> Why this semicolon? The same thing I see everywhere in your sources.
> > >
> > >Do you think this semicolon makes something slower?
> >
> > No. But why the semicolon. It seems highly unconventional to me.
>
> But not for me. Let me explain it... First programming language that I've learnt
> is Pascal (I don't say about Basic, because IMHO it's not a PL, it's something
> for beginners and dummies :). In Pascal composite operators are made this way:
>
> BEGIN
> operator1;
> operator2;
> END;
> ^ this semicolon must be present always.
But, in C, if you try:
if(expr) {
func();
func();
}; /* <--- */
else
func();
You will get a parse error.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT HotMail DOT com
ICQ: 32959047
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |