summaryrefslogtreecommitdiff
path: root/MLKInterpreter.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-10-04 00:57:35 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-10-04 00:57:35 +0200
commit5b13591caa3b79c922487a6b21d5240afdb00f86 (patch)
tree095b556c4d2a8c11f4a779ac17018be4e25ef226 /MLKInterpreter.m
parentafaaec406bc86bf52ef976634b458dbc7e01fdc9 (diff)
parenta4a3054ddeeecbf7ec3b087b2db69bea192ebc8a (diff)
Merge /home/mulk/Dropbox/Projekte/Toilet Lisp
Diffstat (limited to 'MLKInterpreter.m')
-rw-r--r--MLKInterpreter.m15
1 files changed, 3 insertions, 12 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m
index 027e2f7..e7e95ba 100644
--- a/MLKInterpreter.m
+++ b/MLKInterpreter.m
@@ -473,20 +473,11 @@ PRIMARY (NSArray *array)
@end
-@implementation MLKMultipleValueCallForm (MLKInterpretation)
+@implementation MLKMultipleValueListForm (MLKInterpretation)
-(NSArray *) reallyInterpretWithEnvironment:(MLKLexicalEnvironment *)env
{
- NSMutableArray *results = [NSMutableArray array];
- int i;
- id <MLKFuncallable> function = PRIMARY ([_functionForm interpretWithEnvironment:env]);
-
- for (i = 0; i < [_bodyForms count]; i++)
- {
- NSArray *values = [[_bodyForms objectAtIndex:i] interpretWithEnvironment:env];
- [results addObjectsFromArray:values];
- }
-
- return [function applyToArray:results];
+ NSArray *results = [_listForm interpretWithEnvironment:env];
+ return [NSArray arrayWithObject:[MLKCons listWithArray:results]];
}
@end