[Issue 9931] Bus error interfacing with C function returning structs with floats

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 14 11:43:06 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9931


Jacob Carlborg <doob at me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #2 from Jacob Carlborg <doob at me.com> 2013-04-14 11:43:05 PDT ---
You're supposed to invoke the functions like that. The objc_msgSend functions
need to be casted to the correct signature.

http://stackoverflow.com/questions/8405737/how-do-i-return-a-struct-value-from-a-runtime-defined-class-method-under-arc

This works perfectly fine in C:

http://pastebin.com/cTfn0PJS

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list