[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: private ly:version?
From: |
Jean Abou Samra |
Subject: |
Re: private ly:version? |
Date: |
Fri, 25 Sep 2020 13:40:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Le 24/09/2020 à 16:05, Jan-Peter Voigt a écrit :
Hi all,
I now have a use case for ly:version? documented in
http://lilypond.org/doc/v2.21/Documentation/usage/writing-code-to-support-multiple-versions
But the function is module-private in lily. The example on that page
does not compile and so doesn't any external file.
I can work around it with
#(define ly:version? (@@ (lily) ly:version?))
But I guess that is not intended?
I might change the define to define-public in 'scm/lily-library.scm'?
Jan-Peter
See https://gitlab.com/lilypond/lilypond/-/issues/5517
Naturally, patches are always welcome!
I'm not quite sure how to properly ensure a condition
is true in a regression test. Maybe just
#(if (not (ly:version? = (ly:version)))
(ly:message "WARNING: ly:version? broken!"))
Best,
Jean