[m-rev.] diff: remove MC++ function implementations from the library
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Aug 14 11:45:50 AEST 2001
On 13-Aug-2001, Tyson Dowd <trd at miscrit.be> wrote:
>
> @@ -566,9 +566,10 @@
> :- pragma foreign_proc("C", float__radix = (Radix::out),
> [will_not_call_mercury, thread_safe],
> "Radix = ML_FLOAT_RADIX;").
> -:- pragma foreign_proc("MC++", float__radix = (_Radix::out),
> +:- pragma foreign_proc("C#", float__radix = (_Radix::out),
> [will_not_call_mercury, thread_safe], "
> - mercury::runtime::Errors::SORRY(""foreign code for this function"");
> + mercury.runtime.Errors.SORRY(""foreign code for this function"");
> + _Radix = 0;
> ").
Why did you add "_Radix = 0" here?
Is that to suppress a singleton variable warning?
If so, the fact that the warning occurs is really a problem
in the Mercury C# interface, and we ought to fix that.
Oh, I guess it is probably due to the C# compiler reporting
errors about attempts to access variables which may not have
been initialized. That's a bit harder to avoid.
Does C# have anything like GCC's "noreturn" attribute?
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | 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