summaryrefslogtreecommitdiff
path: root/MLKInterpretedClosure.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-31 15:48:32 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-31 15:48:32 +0200
commit9a500734046ab8bac571867678d4848e6eeecf5c (patch)
treed6c24c8cdae8c10f341b1dc6558c740b78603190 /MLKInterpretedClosure.m
parentd4cea2c3033b37445a53730dc82630e14d443e0c (diff)
Make functions accept empty argument lists.
Diffstat (limited to 'MLKInterpretedClosure.m')
-rw-r--r--MLKInterpretedClosure.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/MLKInterpretedClosure.m b/MLKInterpretedClosure.m
index 4557c7b..3da152c 100644
--- a/MLKInterpretedClosure.m
+++ b/MLKInterpretedClosure.m
@@ -21,6 +21,7 @@
#import "MLKInterpreter.h"
#import "MLKPackage.h"
#import "runtime-compatibility.h"
+#import "util.h"
#import <Foundation/NSDictionary.h>
#import <Foundation/NSSet.h>
@@ -56,7 +57,7 @@ static MLKSymbol *PROGN;
MLKLexicalEnvironment *new_environment =
[MLKLexicalEnvironment environmentWithParent:environment
- variables:[NSDictionary dictionaryWithObject:arglist
+ variables:[NSDictionary dictionaryWithObject:nullify(arglist)
forKey:lambdaListName]
functions:nil];