[Development] Could support for C be added to Qt?
samuel ammonius
sfammonius at gmail.com
Sat Sep 10 12:47:22 CEST 2022
> In C, constructors/destructors usually become alloc/free functions. C
> has macros and code generation but these aren’t directly analogous to
> templates.
The problem is that C++ doesn't let you get the address of
constructors/destructors.
The only option might be to make a function that calls "new" and returns
it, and same
with delete, but that would probably destroy the point of having the
bindings internal
so I don't know what to do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220910/d0eaa5f9/attachment.htm>
More information about the Development
mailing list