summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-27 18:52:23 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-27 18:52:23 +0200
commitab6010f8463ec21ed50de38ffad29e8fb6ba4867 (patch)
treeb5e00f06d2f6defd21c3a02384416cb2e685ead4 /MLKRoot.m
parent0d52c58f1e8941c4c08182710abcb327489b8c99 (diff)
Add SYMBOL-NAME.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index a921c19..07cfe5f 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -406,7 +406,7 @@ static id truify (BOOL value)
intern:@"*PACKAGE*"]]));
MLKSymbol *symbol = [package intern:name];
- return [NSArray arrayWithObjects:symbol, nil];
+ RETURN_VALUE (symbol);
}
+(NSArray *) import:(NSArray *)args
@@ -446,4 +446,10 @@ static id truify (BOOL value)
NSLog (@"%@", description);
RETURN_VALUE ([args objectAtIndex:0]);
}
+
++(NSArray *) symbol_name:(NSArray *)args
+{
+ MLKSymbol *symbol = denullify ([args objectAtIndex:0]);
+ RETURN_VALUE (symbol ? (id)[symbol name] : (id)@"NIL");
+}
@end