From: Timothy H. <tim...@ma...> - 2002-09-11 10:47:27
|
On Tuesday, September 10, 2002, at 08:11 PM, Graham Spencer wrote: > Given this file: > > ;; or.scm > (define (test-or) (or #f 1 2)) > > If I compile or.scm to a .class file, I get this behavior from > jscheme.REPL: > > > (or.load) > #null > > (test-or) > #t Whoops! You are exactly right. This is the wrong behavior. It has been corrected in the latest version of jscheme (download from CVS) which is Jscheme 5.1.2 (9/11/2002) Thanks for the bug report! ---Tim--- P.S. We're still thinking over the compiler/macros issues.... I think the idea of compiling "(load ...)" so that it scans for macros is probably a good idea.... Something similar would need to be done for (prog.load) > > (load "or.scm") > #t > > (test-or) > 1 > > I think the (load "or.scm") behavior is correct -- (or) should return > the first true value, not #t. Is that right? Thanks, > > --g > > > > ------------------------------------------------------- > In remembrance > www.osdn.com/911/ > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |