Use IDL to generate COM API #8282
namandixit
started this conversation in
Ideas
Replies: 1 comment
-
This is a definitely a desirable change to make, I've opened this issue to track it, however it's not currently on the near term roadmap #8356 |
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.
-
COM was originally designed to make language bindings easier. But the current way of doing COM in this project is the worst of both worlds: it adds all the superficial complexity of COM without providing any of the actual features of COM.
Since Slang API follows COM, it might make more sense to have that API be generated through IDL files. That way, the COM API can be used from C directly (see here for instructions on how). IDL generated headers also come with a
COBJMACROS
define guard that includes some helper macros to make COM headers easy to use with C.This will allow C and any programming language with a C-compatible FFI to simply use the library directly, instead of either using the deprecated C API or write wrappers around C++ API (both of which may break with updates).
Relevant: #6184
Beta Was this translation helpful? Give feedback.
All reactions