memory leak? antiprimes

Started by TedWalther, August 02, 2016, 02:52:21 AM

Previous topic - Next topic

rickyboy

#15
Quote from: "TedWalther"Although, that is a "surprise".  I expect dolist to return a list, then suddenly it doesn't.

:)



The manual says: "The return value of dolist is the result of the last evaluated expression."



http://www.newlisp.org/downloads/newlisp_manual.html#dolist">http://www.newlisp.org/downloads/newlis ... tml#dolist">http://www.newlisp.org/downloads/newlisp_manual.html#dolist



The other looping constructs, and such as `when`, behave the same way.
(λx. x x) (λx. x x)