]> git.donarmstrong.com Git - lilypond.git/commit
5067: Add ly:version? and lexicographic-list-compare?
authorUrs Liska <ul@openlilylib.org>
Tue, 21 Feb 2017 11:42:48 +0000 (12:42 +0100)
committerUrs Liska <ul@openlilylib.org>
Sun, 26 Feb 2017 19:15:38 +0000 (20:15 +0100)
commita45b047cc170a9e239067c1e9dfd7abc5eed2cdc
tree81751812b4b5c15f1ba90684c8c0246528af0f22
parentdde8b7e2851aa51c988cc143a0cc9812680f3d47
5067: Add ly:version? and lexicographic-list-compare?

Squashed commits:
5067: Restrict ly:version? to number list
5067: version-list-compare? rename to lexicographic-list-compare?
5067: version-list-compare? typo
ly:version? and version-list-compare?

A lexicographic list comparison for arbitrary element types,
but with special treatment of trailing elements
(additional elements of the longer list are ignored, which is
typical for version comparisons such as LilyPond 2.19 is equal to 2.19.4)
Simplify lilypond-version operator and create new interface
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.
scm/lily-library.scm