Related articles |
---|
Is the dangling else a syntax bug? vbdis@aol.com (2001-06-28) |
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-02) |
Re: Is the dangling else a syntax bug? lhp+news@toft-hp.dk (2001-07-03) |
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-07-03) |
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-06) |
Re: Is the dangling else a syntax bug? ralph@inputplus.demon.co.uk (2001-07-06) |
Re: Is the dangling else a syntax bug? gsc@zip.com.au (Sean Case) (2001-07-06) |
Re: Is the dangling else a syntax bug? lars@bearnip.com (2001-07-06) |
Re: Is the dangling else a syntax bug? vbdis@aol.com (2001-07-17) |
Re: Is the dangling else a syntax bug? dynagen@eircom.net (Barry Kelly) (2001-07-17) |
Re: Is the dangling else a syntax bug? david.thompson1@worldnet.att.net (David Thompson) (2001-07-17) |
Re: Is the dangling else a syntax bug? genew@shuswap.net (2001-07-17) |
[14 later articles] |
From: | ralph@inputplus.demon.co.uk (Ralph Corderoy) |
Newsgroups: | comp.compilers |
Date: | 6 Jul 2001 16:28:46 -0400 |
Organization: | InputPlus Ltd. |
References: | 01-07-020 01-07-041 |
Keywords: | design, syntax |
Posted-Date: | 06 Jul 2001 16:28:46 EDT |
Hi,
> Even in C you have statement (expression?) separators, which are
> distinct from statement terminators, and allow to write down multiple
> statements as a syntactically single statement: stmt1, stmt2, stmt3;
> I sometimes used that option to bypass the otherwise required block
> delimiters "{...}".
That's the comma operator. It's a sequence point, takes two operands
and return the value of its RHS. The operands aren't statements, e.g.
a while-loop isn't allowed, they're expressions.
Ralph.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.