diff options
-rw-r--r-- | MLKCons.h | 2 | ||||
-rw-r--r-- | MLKCons.m | 8 |
2 files changed, 10 insertions, 0 deletions
@@ -44,5 +44,7 @@ // only -(NSString *)descriptionForLisp; +-(id) copyWithZone:(NSZone *)zone; + -(void) dealloc; @end @@ -128,6 +128,14 @@ return [NSString stringWithFormat:@"(%@)", [self bareDescriptionForLisp]]; } +-(id) copyWithZone:(NSZone *)zone +{ + MLKCons *copy = [MLKCons allocWithZone:zone]; + ASSIGN (copy->_car, _car); + ASSIGN (copy->_cdr, _cdr); + return copy; +} + -(void) dealloc { RELEASE (_car); |