Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000413OCamlCamlIDLpublic2001-06-27 18:102001-07-30 09:30
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000413: camlidl and enum
DescriptionFull_Name: Dmitry Bely
Version: 3.01, camlidl cvs 27.06.01
OS: Windows NT 4.0
Submission from: d009.p3.col.ru (195.210.132.9)


enum declaclaration does not allow extra comma after the last member:

enum enum1 {
    E11 = 0,
    E12 = 0 /* OK */
};

enum enum2 {
    E21 = 0,
    E22 = 0, /* syntax error */
};

It would be nice just to ignore such extra commas, because Microsoft's .idl
files are full of them (don't know if IDL specs allow them or not. Probably they
do because such commas are legal from C point of view).

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000045)
administrator (administrator)
2001-06-29 10:16

> enum declaclaration does not allow extra comma after the last member:
> It would be nice just to ignore such extra commas, because
> Microsoft's .idl files are full of them (don't know if IDL specs
> allow them or not. Probably they do because such commas are legal
> from C point of view).

My K&R second edition doesn't allow the trailing comma, and nor does
the MIDL spec, but I agree it's common usage, convenient, and easy to
implement. I'll implement it.

- Xavier Leroy

(0000046)
administrator (administrator)
2001-06-29 15:24

Allowed optional trailing comma. -XL, 2001-06-29

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker