diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-27 11:13:20 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-27 11:13:20 +0200 |
commit | 85ee881e611058e41e7dd7bc9cacfb7933f6778b (patch) | |
tree | 7cd48fe7a0d809bd4a7f4d767e9089ba92dc4db1 | |
parent | 47d502e02b4dc42d8192102c4e52764da09a90e5 (diff) |
MLKCons: Fix NIL printing for list tails.
-rw-r--r-- | MLKCons.m | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -100,7 +100,8 @@ -(NSString *)bareDescriptionForLisp { if (!_cdr) - return [NSString stringWithFormat:@"%@", [_car descriptionForLisp]]; + return [NSString stringWithFormat:@"%@", + (_car ? (id)[_car descriptionForLisp] : (id)@"()")]; else if ([_cdr isKindOfClass:[MLKCons class]]) return [NSString stringWithFormat:@"%@ %@", (_car ? (id)[_car descriptionForLisp] : (id)@"()"), |