• Marius Gerbershagen's avatar
    cmp: fix compile call for closures · d27f1494
    Marius Gerbershagen authored
        Signal an error for compilation of cclosures. Allow for
        compilation of bclosures over macros, functions and variables.
        Macros are simply added to the compiler environment. For functions
        and variables we enclose the definition of the closure in
        appropiate let/flet forms, e.g. for `(lambda () (fun var))'
        closing over the function `fun' and variable `var':
        (let ((var ...))
          (flet ((fun (x) ...))
            (lambda () (fun var))))
        Closures over tags and blocks are not implemented and will signal
        an error during compilation.
    d27f1494