Re: pi seems not to be a constant
[email protected] (Don Cohen)
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
I should have remembered about pi being recomputed. > Conformity could be restored by having CL:PI defined as a constant > variable bound to double-float, and to have another variable EXT:PI > bound to the changing long-float value. Would still be not conforming. Although the suggestion above would not be strictly conforming, I think it would be an improvement in that (let (pi)) would signal an error and constantp would return the expected result. I was also wondering about (constantp '(+ 1 pi2)) returning t but (constantp '(sin pi2)) returning nil. But I recognize this is conforming. ------------------------------------------------------------------------------ _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list