aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2012-02-05 00:56:39 +0000
committerdos-reis <gdr@axiomatics.org>2012-02-05 00:56:39 +0000
commitbcb6177bcdd58160ef84e3563189f01c0cf3a1ea (patch)
treedc9d212b99f1629ec55250e41106963a41530f34 /src/interp
parentd36c43d159d39a847ef8728e5da201bb29e747f5 (diff)
downloadopen-axiom-bcb6177bcdd58160ef84e3563189f01c0cf3a1ea.tar.gz
* interp/nruncomp.boot (getLocalIndex): Fast track niladic
constructors. * algebra/syntax.spad.pamphlet: Miscellaneous cleanup.
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/nruncomp.boot3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interp/nruncomp.boot b/src/interp/nruncomp.boot
index 58a7531f..cd90fe1b 100644
--- a/src/interp/nruncomp.boot
+++ b/src/interp/nruncomp.boot
@@ -1,6 +1,6 @@
-- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd.
-- All rights reserved.
--- Copyright (C) 2007-2011, Gabriel Dos Reis.
+-- Copyright (C) 2007-2012, Gabriel Dos Reis.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -282,6 +282,7 @@ NRTaddInner(db,x) ==
builtinConstructor? x.op or x.op is "[||]" =>
for y in x.args repeat
NRTinnerGetLocalIndex(db,y)
+ niladicConstructor? x.op => nil
cosig := getDualSignature x.op =>
for y in x.args for t in cosig.source | y isnt '$ and t repeat
NRTinnerGetLocalIndex(db,y)