diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-10-04 00:57:35 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-10-04 00:57:35 +0200 |
commit | 5b13591caa3b79c922487a6b21d5240afdb00f86 (patch) | |
tree | 095b556c4d2a8c11f4a779ac17018be4e25ef226 /MLKInterpreter.m | |
parent | afaaec406bc86bf52ef976634b458dbc7e01fdc9 (diff) | |
parent | a4a3054ddeeecbf7ec3b087b2db69bea192ebc8a (diff) |
Merge /home/mulk/Dropbox/Projekte/Toilet Lisp
Diffstat (limited to 'MLKInterpreter.m')
-rw-r--r-- | MLKInterpreter.m | 15 |
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 |