[m-rev.] diff: use MR_Bool instead of bool.
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed May 9 14:47:53 AEST 2001
On 09-May-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> compiler/ml_code_gen.m:
> Generate foreign language code using MR_Bool instead of bool.
> MC++ doesn't like us using "bool" (not if we want to use the
> namespace "bool" as well, anyway). And we should use the
> typedef in mercury_types.h instead anyway.
That patch is fine. But I'm not sure that it solves the problem with
namespace bool. "bool" is a C++ keyword, so "namespace bool" is a
syntax error.
For CLS compliance, MC++ is supposed to have some way of escaping they
keyword, but I think last time I looked it didn't.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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