How does objective-c know what is going to be returned by an anonymous object?
Posted
by Jeffrey Aylesworth
on Stack Overflow
See other posts from Stack Overflow
or by Jeffrey Aylesworth
Published on 2010-04-30T01:21:24Z
Indexed on
2010/04/30
1:27 UTC
Read the original article
Hit count: 281
objective-c
|anonymous-types
- (void) doSomething: (id)with {
int a;
a = [with doSomething];
}
How does the compiler know what type [with doSomething]
is going to return? Does it assume an int
, since that's what I'm assigning to?
© Stack Overflow or respective owner