-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 5. Oktober 2008 schrieb David Séverin:
> Le Sun, 5 Oct 2008 20:21:07 +0200,
>
> Reinhold Kainhofer <[EMAIL PROTECTED]> a écrit :
> > Yes, it does. internal-set-paper-size sets the symbol 'papersizename in
> > the default paper module to the name. You can easily extract it in
> > scheme:
> >
> >   #(let* ((paper (ly:output-def-scope (eval '$defaultpaper
> > (current-module)))) (size (eval 'papersizename paper)))
> >   (ly:message "The current default paper size is: ~a" size))
[...]
> It's generally not recommanded to use eval, unless onthefly defclass and/or
> language extension:
>
>       is it really neccessary in this case ?

I don't know guile enough to answer this. I simply copied code from paper.scm, 
where eval is used in several places to evaluate a symbol from a given 
module.
BTW, the eval here is not Scheme's eval, but LilyPond's own implementation. 
eval-primitive is Scheme's eval.

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI6QmyTqjEwhXvPN0RAj3gAKDTXAmA5SuSEPcgt+Bjs/h4LS6hbQCdFWdi
lmwUtimppGA1ETgfOmSjrbw=
=JlxP
-----END PGP SIGNATURE-----


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to