[m-dev.] For review: Improve debugging printout under Prolog

Fergus Henderson fjh at cs.mu.oz.au
Mon Nov 3 18:14:15 AEDT 1997


Peter Schachte, you wrote:
> +++ portray.nl	1997/11/03 06:22:26
> @@ -1,74 +1,532 @@
> -%-----------------------------------------------------------------------------%
> +-----------------------------------------------------------------------------%

That looks like a mistake.

> +add_to_hidden_list(Hidden1, Hidden2, Hidden) :-
> +	(   Hidden2 == term ->
> +		Hidden = term
> +	;   append(Hidden1, Hidden2, Hidden3),
> +	    sort(Hidden3, Hidden)
> +	).

> +remove_from_hidden_list(Shown, Arity, Hidden0, Hidden) :-
> +	(   Hidden0 \== term ->
> +		Hidden1 = Hidden0
> +	;   integer(Arity) ->
> +		list_between(1, Arity, Hidden1)
> +	;   list_between(1, 255, Hidden1)
> +	),

Inconsistent indentation: the `else' part should be at the same
level of indentation as the `then' part.

Otherwise that all looks OK, so once you've fixed the above, you can
go ahead and commit it.

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



More information about the developers mailing list