Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!mit-eddie!genrad!decvax!michaud From: michaud@decvax.UUCP (Jeff Michaud) Newsgroups: comp.lang.c Subject: Re: COMMA separated expresses Message-ID: <103@decvax.UUCP> Date: Thu, 25-Jun-87 20:37:51 EDT Article-I.D.: decvax.103 Posted: Thu Jun 25 20:37:51 1987 Date-Received: Sat, 27-Jun-87 04:19:04 EDT References: <1601@oliveb.UUCP> Lines: 24 > foo() > { > if( x == 0 ) > func(), return; > } The compiler should complain about the following because the "," operator works with expressions, and "return" is NOT an expression (ie. it doesn't have a value). > ... > func(), exit(); > ... is OK because "exit()" is a function call and therefore has a value. (though I am willing to guess that it would be invalid if "exit()" was defined as a function returning "void". Jeff Michaud michaud@decvax.dec.com michaud@decvax.UUCP Disclaimer....