Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
saagarjha
on Nov 25, 2020
|
parent
|
context
|
favorite
| on:
Apple Silicon M1: Black Magic Fuckery
It’s stored in the isa pointer inside the object.
gpderetta
on Nov 25, 2020
[–]
thanks, it makes sense now.
For what I understand, the isa pointer is sorta-kinda similar to a vtable pointer in C++.
saagarjha
on Nov 26, 2020
|
parent
[–]
Yep. It’s actually a pointer to the class instance for the object, which is a full object that contains more information than a typical vtable might, but it serves as a “type ID” that the runtime can use to dispatch on.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: