Previous: , Up: Other Considerations   [Contents][Index]


7.2 Version Numbering

As Declt evolves over time, you might one day feel the need for conditionalizing your code on the version of the library.

The first thing you can do to access the current version number of Declt is use the version function.

Function: version &optional (TYPE :number)

Return the current version number of Declt. TYPE can be one of :number, :short or :long. For :number, the returned value is a fixnum. Otherwise, it is a string.

A Declt version is characterized by 4 elements as described below.

In addition to that, each version of Declt (in the sense major.minor, regardless of the status) has a name, stored in the parameter *release-name*. The general naming theme for Declt is “Star Trek Characters”.

Here is how the version function computes its value.

Incidentally, but you will probably never need to use it, Declt also exports a variable named *copyright-years*, which, as its name suggests, is a string denoting the copyright years for the whole project.


Previous: Configuration, Up: Other Considerations   [Contents][Index]