summaryrefslogtreecommitdiff
path: root/MLKLexicalEnvironment.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-03 19:18:31 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-03 19:18:31 +0200
commit930a4cef72c1b3798edbd7f3a91ee79a5cbb14ad (patch)
treed8f8ea8b2394a639c610360ba5e4880f344a0b4c /MLKLexicalEnvironment.m
parent92a3142b212589ff9da84347b72e679d0827efd7 (diff)
Reimplement VALUES as a function as opposed to a special operator.
Diffstat (limited to 'MLKLexicalEnvironment.m')
-rw-r--r--MLKLexicalEnvironment.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/MLKLexicalEnvironment.m b/MLKLexicalEnvironment.m
index c460111..4bcac78 100644
--- a/MLKLexicalEnvironment.m
+++ b/MLKLexicalEnvironment.m
@@ -33,6 +33,7 @@
#import "MLKReadtable.h"
#import "MLKSymbol.h"
#import "MLKInteger.h"
+#import "MLKValuesFunction.h"
#import "runtime-compatibility.h"
@@ -59,6 +60,9 @@ static MLKLexicalEnvironment *global_environment;
[vars setObject:[NSNull null] forKey:[NSNull null]];
[vars setObject:[cl intern:@"T"] forKey:[cl intern:@"T"]];
+ [funs setObject:AUTORELEASE ([[MLKValuesFunction alloc] init])
+ forKey:[cl intern:@"VALUES"]];
+
global_environment = [[self alloc] initWithParent:nil
variables:vars
functions:funs];