On Wed 14 Dec 2011 00:16, David Kastrup <d...@gnu.org> writes: > guile> '#{ \relative c' { $p 2 \mark #4 } #} > (#<procedure embedded-lilypond (parser lily-string filename line closures)> > parser " \\relative c' { $p 2 \\mark #4 } " #f 2 (list (cons 17 (lambda () > p))))
Ah, thanks for this example. Thanks also for the previous example music mail. > The obvious wishlist item would be to replace the potentially long and > expensive to create argument "closures" (which needs to get consed > together on each call since (lambda () p) needs to be created in the > current environment) with (package-environment). I can see how this is a bit irritating, but at least if you are running with the compiler, this is likely to be significantly faster than 1.8. > I have no reliable idea what "memoize" means exactly in Guile's > terminology, and the parts of the manual I have consulted have no qualms > using this expression, but don't bother explaining it. There are only two instances of this word in the Guile 2.0 manual :) Andy -- http://wingolog.org/