[CM] random stream with lists?

Rick Taube taube@uiuc.edu
Wed, 24 Sep 2003 10:25:09 -0500


> Does that mean you implemented scheme syntax in lisp? Maybe I could
> try to port that to CMUCL.\

You dont have to port it -- its loaded automaticall into any CL image 
you build cm in unless you do (push :no-scheme *features*) first. look 
at src/scheme.lisp. But Its really a 'sugar coating' -- you get to use 
scheme procedure names, define, etc. but of course its not really 
scheme, ie (define (foo ...) ...) turns into (defun foo (...) ...) and 
(define foo 1) becomes (defparameter foo 1).  In fact the define case 
is the worse case: in Scheme define creates a lexical variable but in 
CL its a defun and a special variable. scheme.lisp is provided so that 
cm code can be more "portable" between CL and Scheme, not to invent 
scheme in cl.