#169 scanmap/bottomup failure

closed
nobody
None
5
2004-11-01
2002-10-22
No

scanmap(lambda([q],1),sin(x),bottomup)

and

scanmap(factor,LOG((x^2+2*x+1)/(x+1)^2),bottomup)

give a fatal error in subst0.

The problem is that subst0 requires non-atomic
expressions as arguments. All other uses of subst0
guarantee non-atomic arguments, but it's simpler to
correct it in subst0 than to have a special version just for
this case.

old>>
(DEFMFUN SUBST0 (NEW OLD)
(COND ((ALIKE (CDR NEW) (CDR OLD))

new>>
(DEFMFUN SUBST0 (NEW OLD)
(COND ((atom new) new)
((ALIKE (CDR NEW) (CDR OLD))
...

Discussion

  • Raymond Toy

    Raymond Toy - 2004-11-01

    Logged In: YES
    user_id=28849

    Fixed as suggested.

     
  • Raymond Toy

    Raymond Toy - 2004-11-01
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks