Closed Bug 13390 Opened 26 years ago Closed 26 years ago

xpidl: consts that aren't longs or shorts should be a warning

Categories

(Core :: XPCOM, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: cbegle, Assigned: mike+mozilla)

Details

only shorts and longs can be consts. trying to declare consts of other types should generate a warning.
this would be a good one for the faq. shaver tells me there's a related bug for this but i haven't found it yet.
Status: NEW → ASSIGNED
Marking as assigned. I'm thinking it'll be quick.
couldn't find the other bug. jband, is there a reason why other types can't be const?
I pointed out the reason for not doing 'string' and 'wstring' in the faq. The other types are simply not worth bothering with.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed. (I'm also turning an existing warning into an error on the typelib backend, but I won't hold the bug open for that.) Thanks, shaver.
Component: xpidl → XPCOM
QA Contact: mike+mozilla → xpcom
You need to log in before you can comment on or make changes to this bug.