aboutsummaryrefslogtreecommitdiff
path: root/src/interp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-09-21 20:03:55 +0000
committerdos-reis <gdr@axiomatics.org>2009-09-21 20:03:55 +0000
commit31cfd568a21d4187e3ac8e19439fa59e69273619 (patch)
tree7fed27f29e0584dca207671771f598108c304a13 /src/interp
parentce6a9cf2d4342177e2a97d56f63f14d72de61a90 (diff)
downloadopen-axiom-31cfd568a21d4187e3ac8e19439fa59e69273619.tar.gz
* interp/i-spec2.boot (findConstantInDomain): Substitute into the
result domain.
Diffstat (limited to 'src/interp')
-rw-r--r--src/interp/i-spec2.boot7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interp/i-spec2.boot b/src/interp/i-spec2.boot
index 794568e5..a82579b9 100644
--- a/src/interp/i-spec2.boot
+++ b/src/interp/i-spec2.boot
@@ -98,9 +98,10 @@ constantInDomain?(form,domainForm) ==
++ in the VAT `op'.
findConstantInDomain(op,c,type,d) ==
isPartialMode d => throwKeyedMsg("S2IS0020",NIL)
- if $genValue then
- val := wrap getConstantFromDomain([c],d)
- else val := ["getConstantFromDomain",["LIST",MKQ c],MKQ d]
+ val :=
+ $genValue => wrap getConstantFromDomain([c],d)
+ ["getConstantFromDomain",["LIST",MKQ c],MKQ d]
+ type := substitute(d,"$",type)
putValue(op,objNew(val,type))
putModeSet(op,[type])