Changes between Version 1 and Version 2 of ObjectiveC/Messaging


Ignore:
Timestamp:
Jan 10, 2009 12:57:28 PM (6 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectiveC/Messaging

    v1 v2  
    1010The first argument is the receiver object.  All following arguments are message arguments (one per colon, as usual).  A foreign import is just about issuing Objective-C messages.  We are not trying to model overloading at this point or anything similar.  So, if we, for example, want `s'locationInView` for a subclass, we need to define another function '''with a different name.''' 
    1111 
    12 We might use the imported function as follows in a statement of a do block: 
     12We might use the imported function as follows: 
    1313{{{ 
     14-- ObjC: touchedPoint = [myTouchObject locationInView:currentView]; 
    1415s'locationInView touchedPoint myTouchObject currentView 
    1516}}}