Does Delphi use the Pascal calling convention? Embarcadero still sells it as part of RAD Studio, targeting modern platforms including iOS.
@Joe_Groff sadly this is something that I am actively looking into and running into :).
runtime: allow over-aligned types in the runtime by compnerd ¡ Pull Request #42143 ¡ apple/swift (github.com)
IRGen: setup foreign calls properly by compnerd ¡ Pull Request #42157 ¡ apple/swift (github.com)
CoreFoundation: correct alignment mis-assumption by compnerd ¡ Pull Request #3164 ¡ apple/swift-corelibs-foundation (github.com)
were unearthed by reviving the Win32 port for the runtime. I actually am running into problems with calling conventions for foreign functions being dropped on the floor (the current case being closures).
Aha :-) For some reason I had them muddled in my head â probably because Win16 used pascal
and then Win32 changed to stdcall
so I'd rather assumed that they were the same (I knew they were both callee-pop). I hadn't really appreciated that they'd changed the argument order.
Did an official proposal ever come out of this?
Not yet as far as I know. The remaining issues need to be hashed out in a pitch or review cycle.
According to @Joe_Groff :
- The list of issues from Jordan's OP still looks like a good list of topics to hash out in a pitch/review cycle.
Hi, is there any movement in pitching and implementing the aforementioned @expose attribute? Currently I can't see a way to control what Swift API gets exposed to C++ and that would be really helpful.
I guess here is latest thread about this: