In program 10.1
#import "Fraction.h"
int main (int argc, char * argv[])
{
@autoreleasepool {
Fraction *a, *b;
a = [[Fraction alloc] initWith: 1 over: 3];
b = [[Fraction alloc] initWith: 3 over: 7];
[a print]; [b print];
[a release];
[b release];
}
return 0;
}
I don't understand the purpose of the final two statements (a and b release method invocations). I typed the program in exactly how the book did and it gives me the error
'release' is unavailable: not available in automatic reference counting mode.
Thanks for the help
Mark Johnson