From 9a500734046ab8bac571867678d4848e6eeecf5c Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 31 Jul 2008 15:48:32 +0200 Subject: Make functions accept empty argument lists. --- MLKInterpretedClosure.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #import @@ -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]; -- cgit v1.2.3