Is Objective-C pass-by-value or pass-by-reference?
Since we always use pointers to define variables, I was wondering if Objective-C is "pass by value", since like Java, the actual value would be passed by using its reference. However, since it seems to be built up on top of C, would it have all the functionality of C? C does not support pass-by-reference and Objective-C, being a strict superset of C doesn't either. In C (and Objective-C) you can simulate pass-by-reference by passing a pointer, but it's important to remember that you're still technically passing a value, which happens to be a the value of a pointer. So, in Objective-C (and C,