aboutsummaryrefslogtreecommitdiff
path: root/src/interp/i-coerce.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-05-02 01:02:57 +0000
committerdos-reis <gdr@axiomatics.org>2011-05-02 01:02:57 +0000
commit1906e73ab030ad23f1f6269acfed69703c8c40d6 (patch)
treeb00af81c96b09e67a5634aa0e21d3b9a9ea6419d /src/interp/i-coerce.boot
parent786cd98c9ab4543bb9d4a901a3d71497dd858aa5 (diff)
downloadopen-axiom-1906e73ab030ad23f1f6269acfed69703c8c40d6.tar.gz
more cleanup
Diffstat (limited to 'src/interp/i-coerce.boot')
-rw-r--r--src/interp/i-coerce.boot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interp/i-coerce.boot b/src/interp/i-coerce.boot
index a6dab0c3..6d4c84fe 100644
--- a/src/interp/i-coerce.boot
+++ b/src/interp/i-coerce.boot
@@ -571,7 +571,7 @@ canCoerceByMap(t1,t2) ==
-- save some time for those we know about
know := '(List Vector Segment Stream UniversalSegment Array
Polynomial UnivariatePolynomial SquareMatrix Matrix)
- top in know => canCoerce(u1,u2)
+ symbolMember?(top,know) => canCoerce(u1,u2)
null selectMms1('map,t2,[['Mapping,u2,u1],t1],
[['Mapping,u2,u1],u1],nil) => nil
@@ -617,8 +617,8 @@ canCoerceCommute(t1,t2) ==
-- THIS IS OUT-MODED AND WILL GO AWAY SOON RSS 2-87
-- t1 is t2 with the two top level constructors commuted
-- looks for the existence of a commuting function
- first(t1) in (l := [$QuotientField, 'Gaussian]) and
- first(t2) in l => true
+ symbolMember?(first(t1),(l := [$QuotientField, 'Gaussian])) and
+ symbolMember?(first(t2),l) => true
p:= ASSQ(first t1,$CommuteTable)
p and ASSQ(first t2,rest p) is [.,:['commute,.]]