[m-dev.] for review: int__xor

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Oct 26 13:19:23 AEST 1999


On 26-Oct-1999, David Glen JEFFERY <dgj at cs.mu.OZ.AU> wrote:
> How about a ":- pragma obsolete ('^'/2)."?

There are a few occurrences of `^' in the compiler
and library (in string__hash and in compiler/const_prop.m).
For bootstrapping reasons, these can't be changed yet,
and so we can't add ":- pragma obsolete ('^'/2)." yet either
(at least not unless we comment out the --halt-at-warn option
in MCFLAGS from Mmake.common.in, which would probably be a
bad idea).

I would suggesting adding the pragma, but leaving it
commented out and mentioning the reason:

	/***
	XXX this can't be added yet, for bootstrapping reasons
	:- pragma obsolete('^'/2).
	***/

Apart from that, this change is fine for now.

A later change should modify library/string.m,
compiler/const_prop.m, and the bootstrapping test in
configure.in (to test for `int__xor'), and should uncomment
the pragma obsolete declaration.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- 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