Changes between Version 4 and Version 5 of ObjectiveC/Messaging


Ignore:
Timestamp:
Jan 13, 2009 4:34:37 AM (5 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectiveC/Messaging

    v4 v5  
    2929 * If the returned type is `()`, we use `objc_msgSend_stret`; the first argument to the function must be a `(Ptr t)` and the second must be the receiver object. 
    3030 * If the returned type is `CFloat`, `CDouble`, or `CLDouble`, we use `objc_msgSend_fpret` (with the function pointer cast to the appropriate return type first); the first argument must be the receiver object. 
    31  * Otherwise, we use `objc_msgSend`; the first argument must be the receiver object.  ['''FIXME:''' ''What about integral return types?  Just use obc_msgSend and cast its function pointer first?''] 
     31 * Otherwise, we use `objc_msgSend`; the first argument must be the receiver object.  We need to cast  `obc_msgSend`'s function pointer first. 
    3232 
    3333== Return values ==