Replies: 3 comments 2 replies
-
I'll implement this if accepted, it'd make good practice for compiler work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for putting together a discussion and a definition. For some reason I had this confused with partial struct definition, whoops. I like the definition, we might want the following:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Moved to #1522 as new feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Opening as discussion first to explore whether the idea is solid before making it an issue.
As of writing,
incompleteStruct
is defined as:This is strictly an implementation detail for the C backend and is not very useful for defining pure wrappers (ie. wrappers not using
.header
).I propose to redefine
incompleteStruct
as:The goal of the new definition is to enable the creation of safer wrappers, for example:
would be defined as:
preventing these kinds of misuse (all of which are possible at the moment):
EDIT: Updated with inheritance semantics as discussed in #1520 (comment)
Beta Was this translation helpful? Give feedback.
All reactions