🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5477

why isn't a trailing comma inside an enum allowed?

#5477
From: Maarten Litmaath
Date: Thu, 08 Dec 1988 22:37
14 lines
983 bytes
In article <9095@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
\In article <2174@vedge.UUCP> lai@vedge.UUCP (David Lai) writes:
\>Is this a bug or feature?
\
\An unofficial feature.
\
\>Should ANSI compilers allow this?
\
\Definitely not!  Trailing comma in an initializer list is allowed, though.
 ^^^^^^^^^^^^^^
Why? Why? Why! This almost makes me go weeping in the corner...
-- 
fcntl(fd, F_SETFL, FNDELAY):          |Maarten Litmaath @ VU Amsterdam:
      let's go weepin' in the corner! |maart@cs.vu.nl, mcvax!botter!maart
Technical Details
Message-ID: <1787@solo7.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart
References: <2174@vedge.UUCP> <9095@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart
From: maart@cs.vu.nl (Maarten Litmaath)
Newsgroups: comp.std.c,comp.windows.x
Subject: why isn't a trailing comma inside an enum allowed?
Message-ID: <1787@solo7.cs.vu.nl>
Date: 8 Dec 88 22:37:28 GMT
References: <2174@vedge.UUCP> <9095@smoke.BRL.MIL>
Reply-To: maart@cs.vu.nl (Maarten Litmaath)
Organization: VU Informatica, Amsterdam
Lines: 14