[m-rev.] diff: update configure.in
Zoltan Somogyi
zs at cs.mu.OZ.AU
Tue Jan 28 12:53:24 AEDT 2003
configure.in:
Fix the test for the compiler being sufficiently recent. Since array2d
was added to the library, we need not only dot as the module qualifier
character, but also the ability to handle field access syntax in
func and mode declarations and in function clause heads.
Zoltan.
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.348
diff -u -b -r1.348 configure.in
--- configure.in 24 Jan 2003 07:17:05 -0000 1.348
+++ configure.in 28 Jan 2003 01:47:18 -0000
@@ -170,11 +170,21 @@
main(!IO) :-
return_rtti_version(Version),
- ( Version >= 6 ->
+ (
+ Version >= 6,
+ ac(2) ^ elem(3, 5) = 17
+ ->
io.print("Hello, world\n", !IO)
;
io.print("Nope.\n", !IO)
).
+
+ :- type a ---> ac(int).
+
+ :- func a ^ elem(int, int) = int.
+ :- mode in ^ elem(in, in ) = out is det.
+
+ ac(T) ^ elem(I, J) = T + I * J.
:- pred return_rtti_version(int::out) is det.
--------------------------------------------------------------------------
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