#455 f+ has incompatible definitions

closed
nobody
None
5
2005-12-10
2003-11-30
No

clmacs defines f+ as nary fixnum addition macro:
(def-op f+ fixnum +)
and it is used in many places that way.

But plot.lisp and todd-coxeter.lisp define it as binary
expr:
plot.lisp: (defbinop f+ + fixnum)
todd-coxeter.lisp: (defmacro f+ (a b)...)

The binary definition has overridden the nary definition in
the built system, so any loads of source code that
depend on nary f+ will run into problems.

Clearly there needs to be more discipline here.

Discussion

  • Raymond Toy

    Raymond Toy - 2005-12-10

    Logged In: YES
    user_id=28849

    plot.lisp no longer has the redefinition, and todd-coxeter
    uses a compiler-macro. This shouldn't be a problem anymore,
    but we should remove the compiler-macro anyway.

     
  • Raymond Toy

    Raymond Toy - 2005-12-10
    • 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:

JavaScript is required for this form.





No, thanks