[m-rev.] for review: add test for `..' to configure script

Julien Fischer juliensf at cs.mu.OZ.AU
Mon Dec 27 18:59:47 AEDT 2004


On Mon, 27 Dec 2004, Ian MacLarty wrote:

> For review by anyone.
>
> Estimated hours taken: 0.3
> Branches: main
>
> Test for `..' as infix operator in configure script when testing if the
> installed mmc is sufficiently recent, because `..' is used as an infix operator
> in list.opt.
>
> configure.in
> 	Test use of `..' as infix operator.
>
> Index: configure.in
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/configure.in,v
> retrieving revision 1.410
> diff -u -r1.410 configure.in
> --- configure.in	23 Dec 2004 04:19:35 -0000	1.410
> +++ configure.in	27 Dec 2004 00:22:59 -0000
> @@ -186,13 +186,14 @@
>
>  		:- implementation.
>
> -		:- import_module int.
> +		:- import_module int, list.
>
>  		main(!IO) :-
>  			return_rtti_version(Version),
>  			(
>  				Version >= 8,
> -				ac(2) ^ elem(3, 5) = 17
> +				ac(2) ^ elem(3, 5) = 17,
> +				(1 .. 2) = [[1, 2]]

That should be (1 .. 2) = [1, 2], it's a type error
as written as `..` returns a list of ints not a list
of list of ints.

Cheers,
Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list