6.9.1 Select Package

The selection constraint is not part of the Mozart distribution, rather it is a 3rd party package provided by me. Like all Mozart 3rd party packages, it is available from the MOGUL repository in which it is known by id mogul:/duchier/select. In order to be able to use it, you must download and install it: this is made very easy. From the repository, you will be able to download duchier-select-1.4.1.tgz or whatever the name is for the most recent version of the package. To install it, simply execute the following sequence of instructions at a shell:

tar zxf duchier-select-1.4.1.tgz
cd duchier-select-1.4.1
make install

Once installed, the package is available through URI x-ozlib://duchier/cp/Select.ozf. For example, in a functor you can import it as follows:

import Select at 'x-ozlib://duchier/cp/Select.ozf' 

and in the interactive OPI, you might obtain it as follows:

declare [Select] = {Module.link ['x-ozlib://duchier/cp/Select.ozf']}

Unfortunately, the package needs at least Mozart version 1.1.1 which is not yet officially released. You can get the current development version of Mozart from our anonymous CVS server (see the Mozart site for information on how to do this). Supposing you have obtained a copy of the mozart sources from the CVS server and that this copy resides in ~/mozart, here is what to do to build and install the Mozart system. Execute the following sequence of steps in a shell:

cd ~
mkdir build-mozart
cd build-mozart
make install

You can install in a non-standard place either by using an option at configuration time:

~/mozart/configure --prefix=$OTHERDIR

or by using an argument at installation time:

make install PREFIX=$OTHERDIR

Denys Duchier
Version 1.2.0 (20010221)