Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/cm/Doc/04-versions.tex
ViewVC logotype

View of /sml/trunk/src/cm/Doc/04-versions.tex

Parent Directory Parent Directory | Revision Log Revision Log

Revision 742 - (download) (as text) (annotate)
Thu Nov 30 14:09:32 2000 UTC (19 years, 6 months ago) by blume
File size: 1528 byte(s)
merging changes from private branch
% -*- latex -*-

\section{Version numbers}

A CM library can carry a version number.  Version numbers are
specified in parentheses after the keyword {\tt Library} as non-empty
dot-separated sequences of non-negative integers.  Example:

  Library (
      structure Sqrt2

\subsection{How versions are compared}

Version numbers are compared lexicographically, dot-separated
component by dot-separated component, from left to right.  The
components themselves are compared numerically.

\subsection{Version checking}

An importing library or library component can specify which version of
the imported library it would like to see.  See the discussion is
section~\ref{sec:toolparam:cm} for how this is done.  Where a version
number is requested, an error is signalled if one of the following is

\item the imported library does not carry a version number
\item the imported library's version number is smaller than the
one requested
\item the imported library's version number has a first component
(known as the ``major'' version number) that is greater than the one

A warning (but no error) is issued if the imported library has the
same major version but the version as a whole is greater than the one

Note: {\it Version numbers should be incremented on every change to a
library.  The major version number should be increased on every change
that is not backward-compatible.}

ViewVC Help
Powered by ViewVC 1.0.0