[m-dev.] Library version

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Jan 19 16:00:15 AEDT 2004


On 19-Jan-2004, James Goddard <goddardjames at yahoo.com> wrote:
> Hello,
> 
> library.m:019: Warning: no clauses for predicate `library.version/1'.
> 
> For the Java implementation, where (if anywhere) is this constant kept?

Currently nowhere...

> If it doesn't yet exist, shall I put it in JavaInternal.java or is there a
> prefered location?

In java/runtime/JavaInternal.java would be fine.
Or alternatively in a new file in the same directory.

> What should its value be?

Its value should be obtained from the VERSION file,
which sets the VERSION make variable.

The Java file (e.g. JavaInternal.java) should be
automatically generated from a corresponding .in file
(e.g. JavaInternal.java.in) using sed, in a similar manner to
the way that mercury-compiler.spec in the top-level
directory is generated from mercury-compiler.spec.in.
See the Mmakefile rule for that.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list