Quantcast
Channel: Active questions tagged return-value - Stack Overflow
Viewing all articles
Browse latest Browse all 228

I get one return value from the REPL and another from the file in Common Lisp. Why?

$
0
0

When I use the REPL I get this result:

* (block my-block  (print "We see this")  (return-from my-block 10)  (print "We will never see this"))"We see this" 10* 

But when I load the file I get this result:

(block my-block  (print "We see this")  (return-from my-block 10)  (print "We will never see this"))* (load "a4b.lisp")"We see this" T* 

Why doesn't I get a return value of 10 when I load the file?I know that the REPL doesn't always give the same result as the file.But I want the same result from the return from the file as I do from the REPL.


Viewing all articles
Browse latest Browse all 228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>