|
From: | Auto mailings of changes to Lily Issues |
Subject: | [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] Re: #5067 Add lilypond version predicates/operators |
Date: | Fri, 10 Feb 2017 08:15:25 +0000 |
Some example code for the feature:
%%%%
\version "2.19.54"
((lilypond>? '(2 18))
(ly:message "Running development version"))
((lilypond=? '(2 18))
(ly:message "Running latest stable version"))
(else (ly:message "Running ancient version")))
functionSwitch =
(if
(lilypond>? "2.19.21")
(ly:parser-include-string "#(display \"Included string\")")
(ly:parser-include-string parser "#(display \"Included string\")")))
\functionSwitch
%%%
Of course this will not actually work with older versions because they
don't have the functions
built in. But it serves to demonstrate the use case for future syntax
changes
Am 10.02.2017 um 09:04 schrieb Urs Liska:
[issues:#5067]
https://sourceforge.net/p/testlilyissues/issues/5067/ Add lilypond
version predicates/operatorsStatus: Started
Created: Fri Feb 10, 2017 08:04 AM UTC by Urs Liska
Last Updated: Fri Feb 10, 2017 08:04 AM UTC
Owner: nobodyAdd lilypond version predicates/operators
This set of predicates/operators compares a given reference version
to the LilyPond version that is currently being executed.
This makes it possible to implement "version switches" to write
(library) code that is compatible over syntax changes.NOTE: I'm not sure where (and if) this should be documented.
Please make suggestionshttp://codereview.appspot.com/317270043
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/testlilyissues/issues/5067/To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
--
address@hidden
https://openlilylib.org
http://lilypondblog.org
[issues:#5067] Add lilypond version predicates/operators
Status: Started
Created: Fri Feb 10, 2017 08:04 AM UTC by Urs Liska
Last Updated: Fri Feb 10, 2017 08:04 AM UTC
Owner: Urs Liska
Add lilypond version predicates/operators
This set of predicates/operators compares a given reference version
to the LilyPond version that is currently being executed.
This makes it possible to implement "version switches" to write
(library) code that is compatible over syntax changes.
NOTE: I'm not sure where (and if) this should be documented.
Please make suggestions
http://codereview.appspot.com/317270043
Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ Testlilyissues-auto mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
[Prev in Thread] | Current Thread | [Next in Thread] |