Article View: comp.std.c
Article #4235Re: Comma operator in constant expression
From: Jens M Andreasen
Date: Tue, 17 Oct 1995 12:03
Date: Tue, 17 Oct 1995 12:03
14 lines
757 bytes
757 bytes
On 16 Oct 1995, Paul Long wrote: > Is an implementation required to generate a diagnostic for this declaration? > > static int i = 1 ? 3 : (1, 2); After parsing your fancy expression, the compiler ends up with something like: static i = 3; Looks legal to me. // Jens M Andreasen
Technical Details
Message-ID:
<Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se>Path:
arc1-ca.pugleaf.net!mars.dsv.su.se!jens-andReferences:
<45uevf$d99@news0.rain.rg.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mars.dsv.su.se!jens-and From: Jens M Andreasen <jens-and@dsv.su.se> Newsgroups: comp.std.c Subject: Re: Comma operator in constant expression Date: Tue, 17 Oct 1995 13:03:38 +0100 Message-ID: <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se> References: <45uevf$d99@news0.rain.rg.net> NNTP-Posting-Host: mars.dsv.su.se Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <45uevf$d99@news0.rain.rg.net>