Closed Bug 8992 Opened 25 years ago Closed 25 years ago

xpidl inconsistent handling of const declarations

Categories

(Core :: XPCOM, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 8833

People

(Reporter: warrensomebody, Assigned: jband_mozilla)

Details

If I define this in xpidl:

  interface Foo { const unsigned long X = 0; };

I get this C++ code:

  class Foo { ... enum { X = 0 }; ... }

But if I define this:

  typedef unsigned long Flags;
  interface Foo { const Flags X = 0; };

I don't get any enum value to come out.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 8833 ***
Status: RESOLVED → VERIFIED
Verified Dup of Bug 8833
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
You need to log in before you can comment on or make changes to this bug.