aboutsummaryrefslogtreecommitdiff
path: root/src/interp/g-util.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-12-18 04:29:19 +0000
committerdos-reis <gdr@axiomatics.org>2011-12-18 04:29:19 +0000
commitd286893196d08cbe61ff2c80f470d8c0a7f606cf (patch)
tree44e9f6e45d3a5266be0f0f5b9a85fd18d1d19647 /src/interp/g-util.boot
parenta3517dedf8b4791ce1b6378cb431802b647c7222 (diff)
downloadopen-axiom-d286893196d08cbe61ff2c80f470d8c0a7f606cf.tar.gz
* interp/g-opt.boot (removeScope!): New.
(optimize!): Call it. (optimizeFunctionDef): Simplify.
Diffstat (limited to 'src/interp/g-util.boot')
-rw-r--r--src/interp/g-util.boot2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp/g-util.boot b/src/interp/g-util.boot
index 4404d105..bceb53b9 100644
--- a/src/interp/g-util.boot
+++ b/src/interp/g-util.boot
@@ -55,8 +55,8 @@ abstraction? x ==
x is [op,:.] and ident? op and abstractionOperator? op
hasNoLeave?(expr,g) ==
+ atomic? expr => true
expr is ['%leave, =g,:.] => false
- expr isnt [.,:.] => true
hasNoLeave?(first expr,g) and hasNoLeave?(rest expr,g)
mkScope(tag,expr) ==