[m-dev.] diff: begin using functionality from error_util in typecheck.m
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Feb 15 00:16:32 AEDT 2000
On 14-Feb-2000, Robert Ernst Johann JESCHOFNIK <rejj at students.cs.mu.oz.au> wrote:
> [...] error_util__describe_one_pred_name, like hlds_out__write_pred_id
> puts the word "predicate" or "function" along with the name/arity. [...]
> when long lines get wrapped, this word is being wrapped along
> with the pred name.
>
> eg,
>
> insead of:
> ! pragma_c_code_dup_var.m:014: Error: no clauses for function `pragma_c_code_dup_var:bread_impl/7'.
>
> we get:
> ! pragma_c_code_dup_var.m:014: Error: no clauses for
> ! pragma_c_code_dup_var.m:014: function `pragma_c_code_dup_var:bread_impl/7'.
>
> Is that okay?
> (it would be nicer if "function" didn't wrap, but still..)
You're right that it is not ideal. But I guess it is adequate.
Overwrapping things in this way is probably a bit better than
underwrapping things like we used to do, so it still seems like
an improvement on the earlier status quo.
Cheers,
Fergus.
--
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