aboutsummaryrefslogtreecommitdiff
path: root/src/interp/buildom.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-06-11 13:35:58 +0000
committerdos-reis <gdr@axiomatics.org>2010-06-11 13:35:58 +0000
commitb5dac99efed153300270e86203655b0233543bf8 (patch)
treeb028fa3394a837dc5326cbfdf709ed716dd265ea /src/interp/buildom.boot
parent9f51e802fd65c7f078c71db9827ffd27995dd78d (diff)
downloadopen-axiom-b5dac99efed153300270e86203655b0233543bf8.tar.gz
* interp/buildom.boot (mkNewUnionFunList): Use %bind, not PROG2.
(mkUnionFunList): Likewise.
Diffstat (limited to 'src/interp/buildom.boot')
-rw-r--r--src/interp/buildom.boot10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/interp/buildom.boot b/src/interp/buildom.boot
index 20078c36..1b38217d 100644
--- a/src/interp/buildom.boot
+++ b/src/interp/buildom.boot
@@ -356,8 +356,10 @@ mkNewUnionFunList(name,form is ["Union",:listOfEntries],e) ==
$InteractiveMode =>
["XLAM",["#1"],["PROG1",["%tail","#1"],
["check-union",['%ieq,['%head,"#1"],i],type,"#1"]]]
- ["XLAM",["#1"],["PROG2",["%LET",gg,"#1"],["%tail",gg],
- ["check-union",['%ieq,['%head,gg],i],type,gg]]]
+ ["XLAM",["#1"],
+ ['%bind,[[gg,"#1"]],
+ ["check-union",['%ieq,['%head,gg],i],type,gg],
+ ["%tail",gg]]]
[cList,e]
mkEnumerationFunList(nam,["Enumeration",:SL],e) ==
@@ -401,8 +403,8 @@ mkUnionFunList(op,form is ["Union",:listOfEntries],e) ==
else
ref:=gg
q:= substitute(gg,"#1",p)
- ["XLAM",["#1"],["PROG2",["%LET",gg,"#1"],ref,
- ["check-union",q,t,gg]]]
+ ["XLAM",["#1"],
+ ['%bind,[[gg,"#1"]],["check-union",q,t,gg],ref]]
downFun() ==
p is ['%ieq,['%head,x],.] =>
["XLAM",["#1"],["%tail","#1"]]