lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chose module name instead of *anonymous-ly-NN*?


From: Han-Wen Nienhuys
Subject: chose module name instead of *anonymous-ly-NN*?
Date: Sat, 17 Apr 2004 09:53:57 +0200

address@hidden writes:
> 
> (define-public (parse-expression-string str)
>   (let ((port (open-output-file "/tmp/tmplily.ly")))
>     (format port "
> 
> vartmp = \\notes { ~a }
> #(export vartmp)
> #(define-module (scm toto))
> #(use-modules (ice-9 format) (*anonymous-ly-15*))
> 
>        " str)
>     (close-port port)
>     (ly:parse-file "/tmp/tmplily.ly")
>     vartmp))
> 

o, btw, this is vulnerable to symlink attacks. It's better to modify
the lexer slightly so

  ly:parse-string

is also possible.

-- 

 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]