ObjFW  View Ticket

14:48 Ticket [92e2cd2254] Support for structs in `-OFInvocation invoke` on x86_64/SysV status still Open with 3 other changes artifact: d8a4995e6c user: js
13:19 Ticket [92e2cd2254]: 5 changes artifact: abd4f628b1 user: js
23:58 New ticket [481786666b] Finish support for OFInvocation. artifact: a1d1f77c05 user: js
19:14 New ticket [92e2cd2254] Support for structs in -NSInvocation invoke on x86_64/SysV. artifact: 733a276df1 user: js

Ticket UUID: 92e2cd2254acb45f1528d0c39d400b0a57614059
Title: Support for structs in `-[OFInvocation invoke]` on x86_64/SysV
Status: Open Type: Enhancement
Severity: Severe Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2024-02-03 14:48:05
Version Found In: Milestone: none
User Comments:
js added on 2020-05-23 19:14:48:

Currently structs (and unions and arrays) are unsupported in -[NSInvocation invoke] on x86_64, as the rules to pass them are quite complex. This needs to be implemented for methods like substringWithRange: to work via forwarding. This will require a lot of tests to make sure each and every corner case from the ABI (and there are many) is handled.

On Win64, the situation is luckily better, because for once, Microsoft did the sensible thing and everyone else didn't.