On Nov 11, 2006, at 8:21 PM, <email@hidden>
<email@hidden> wrote:
Unfortunately, I don't have a Mac available to test this with. What
behavior does Apple's version of GCC exhibit for the above
Objective-C++ code? Does it compile?
The following compiles just fine on Mac OS X (using "gcc version
4.0.1 (Apple Computer, Inc. build 5363)") and produces the following
output.
int main(int argc, char** argv) {
Test* test_Test = [[Test alloc] init:100];
id test_id = [[Test alloc] init:200];
printer p;
p.print_Test(test_Test);
p.print_Test(test_id);
p.print_id(test_Test);
p.print_id(test_id);
return 0;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden