[m-dev.] for scathing review: add ++ operator

Michael Day mcda at students.cs.mu.oz.au
Fri Aug 4 19:30:57 AEST 2000


Is this sufficient to get support for the ++ operator? It seems to work
for me, in that I can compile programs using it, but I've probably mixed
up the associativity and precedence.

As I'm having trouble accessing cvs, this diff is not in fact a diff at
all. But hey, it's only one line. Will post a real diff as soon as I work
out what manual to read to find out how to, assuming no one has pointed
out the obvious and glaring inadequacies of this post by that time.

Michael

Estimated hours taken: 0.5

Add the ++ operator for future use as a list and string append operator,
similar to Haskell.

library/ops.m:
	Add the ++ operator.

Index: library/ops.m
===================================================================

Add the line:

ops__op_table("++", after, yfx, 500).           % Mercury extension

Just after the line:

ops__op_table("+", after, yfx, 500).            % standard ISO Prolog

Once again, sorry for the lack of diffitude. (Diffidence?)


--------------------------------------------------------------------------
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