aboutsummaryrefslogtreecommitdiff
path: root/src/interp/c-util.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/c-util.boot')
-rw-r--r--src/interp/c-util.boot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interp/c-util.boot b/src/interp/c-util.boot
index 5820b091..318d03e1 100644
--- a/src/interp/c-util.boot
+++ b/src/interp/c-util.boot
@@ -691,9 +691,9 @@ isDomainInScope(domain,e) ==
true --is not a functor
isSimple x ==
- atom x or $InteractiveMode => true
- x is [op,:argl] and
- isSideEffectFree op and (and/[isSimple y for y in argl])
+ atomic? x => true
+ constructor? x.op or
+ isSideEffectFree x.op and (and/[isSimple y for y in x.args])
isSideEffectFree op ==
member(op,$SideEffectFreeFunctionList) or op is ["elt",.,op'] and