lilypond-user
[Top][All Lists]
Advanced

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

Re: updated margins-a4-letter.ly


From: Reinhold Kainhofer
Subject: Re: updated margins-a4-letter.ly
Date: Sun, 5 Oct 2008 20:38:42 +0200
User-agent: KMail/1.9.10

-----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 <address@hidden> 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: address@hidden, 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-----




reply via email to

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