[m-rev.] for review: change list constructor from `./2' to `[|]/2'
Simon Taylor
stayl at cs.mu.OZ.AU
Mon Sep 24 09:51:25 AEST 2001
On 23-Sep-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
>
> Estimated hours taken: 3
> Branches: main
>
> Change the list constructor from `./2' to `[|]/2'. `./2' will
> eventually become the module qualification operator.
compiler/typecheck.m:
Handle `./2' as a special case in `report_error_undef_cons'.
Index: typecheck.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/typecheck.m,v
retrieving revision 1.307
diff -u -u -r1.307 typecheck.m
--- typecheck.m 2001/08/10 08:29:30 1.307
+++ typecheck.m 2001/09/23 23:43:30
@@ -5761,6 +5761,9 @@
; { Functor = cons(unqualified("-->"), 2) } ->
io__write_string(
" syntax error in DCG lambda expression (`-->').\n")
+ ; { Functor = cons(unqualified("."), 2) } ->
+ io__write_string(
+ " error: the list constructor is now `[|]/2', not `./2'.\n")
; { InvalidFieldUpdates = [_ | _] } ->
io__write_string(
" error: invalid field update `"),
--------------------------------------------------------------------------
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