Closed Bug 5416 Opened 25 years ago Closed 15 years ago

should restrict (or warn) about structs passed by value

Categories

(Core :: XPCOM, defect, P4)

x86
All
defect

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: jband_mozilla, Unassigned)

References

(Depends on 1 open bug)

Details

The 'native' declaration syntax allows for declaring type aliases for structs without tagging them as ptr or ref. native foo(JSContext); rather than [ptr] native foo(JSContext); Such types used in params will result in generate a C++ header in which the struct is passed by value. *Usually* this would be bad. However, there are small structs (like longlongs on some platforms and point structs) that fit in a word and *perhaps* ought to be allowed in interfaces. Still, more often than not such a declaration is a mistake that ought to be flagged.
QA Contact: 1679
Marking these as ASSIGNED. Pesky bugzilla-daemon.
[SPAM] Marking milestone 'future' as part of nsbeta3 triage.
Target Milestone: --- → Future
Mass-reassigning mccabe's non-JS, non-Rhino bugs to jband (34 total). Would like to cc mccabe; but the mass-reassign page does not allow this. I'll leave it up to mccabe to decide if he wants to be cc'ed on these -
Assignee: mike+mozilla → jband
Status: ASSIGNED → NEW
mass reassign of xpidl bugs to dbradley@netscape.com
Assignee: jband → dbradley
Status: NEW → ASSIGNED
Priority: P3 → P4
Assignee: dbradley → nobody
Status: ASSIGNED → NEW
QA Contact: xpidl
Component: xpidl → XPCOM
QA Contact: xpidl → xpcom
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Depends on: 500864
You need to log in before you can comment on or make changes to this bug.