Test code for latest patch set:

```
#(format #t "Three elements (current version 2.19.54):\n> : ~S, >= : ~S\n= : 
~S, <= : ~S\n"
   (ly:version? > '(2 19 54))
   (ly:version? >= 2 19 54)
   (ly:version? = 2 19 54)
   (ly:version? <= 2 19 54))

#(format #t "Three elements (future version 2.19.57):\n> : ~S, >= : ~S\n= : ~S, 
<= : ~S\n"
   (ly:version? > '(2 19 57))
   (ly:version? >= 2 19 57)
   (ly:version? = 2 19 57)
   (ly:version? <= 2 19 57))

#(format #t "Three elements (earlier version 2.19.10):\n> : ~S, >= : ~S\n= : 
~S, <= : ~S\n"
   (ly:version? > '(2 19 10))
   (ly:version? >= 2 19 10)
   (ly:version? = 2 19 10)
   (ly:version? <= 2 19 10))

#(format #t "Two elements (2 19):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(2 19))
   (ly:version? >= 2 19)
   (ly:version? = 2 19)
   (ly:version? <= 2 19))

#(format #t "Two elements (2 18):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(2 18))
   (ly:version? >= 2 18)
   (ly:version? = 2 18)
   (ly:version? <= 2 18))

#(format #t "Two elements (2 20):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(2 20))
   (ly:version? >= 2 20)
   (ly:version? = 2 20)
   (ly:version? <= 2 20))

#(format #t "One element (2):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(2))
   (ly:version? >= 2)
   (ly:version? = 2)
   (ly:version? <= 2))

#(format #t "One element (3):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(3))
   (ly:version? >= 3)
   (ly:version? = 3)
   (ly:version? <= 3))

#(format #t "One element (1):\n> : ~S, >= : ~S\n= : ~S, <= : ~S\n"
   (ly:version? > '(1))
   (ly:version? >= 1)
   (ly:version? = 1)
   (ly:version? <= 1))
```


---

** [issues:#5067] Add lilypond version predicates/operators**

**Status:** Started
**Created:** Fri Feb 10, 2017 08:04 AM UTC by Urs Liska
**Last Updated:** Wed Feb 15, 2017 07:54 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 [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

Reply via email to