logoalt Hacker News

nmeofthestateyesterday at 4:13 PM2 repliesview on HN

They're function calls right? I can't square the "message passing" conceit (implying putting message objects on queues, dequeuing etc) with the claim that Obj-C is just C with some extra stuff.


Replies

pavlovyesterday at 4:18 PM

They're not direct function calls, but sugar for objc_msgSend():

https://developer.apple.com/documentation/ObjectiveC/objc_ms...

9rxyesterday at 4:23 PM

Absolutely not. It only sends a message. The receiver doesn't have to have a corresponding method and can do with that message what it will. Objective-C is a 'true' object-oriented language, like Smalltalk.

show 2 replies