[m-dev.] for review: RL bugs

Simon Taylor stayl at cs.mu.OZ.AU
Tue Jun 15 17:07:18 AEST 1999


> > compiler/tree.m:
> > 	Added `tree__tree_of_lists_is_empty', which is similar to
> > 	`tree__is_empty' except that `node([])' is also considered empty.
> > 	This is useful for trees of instructions.
> 
> Are there any cases where we actually want tree__is_empty to fail
> when the only nodes in the tree contain nil? I can't think of any.
> If I am right, we don't need a new predicate, just a fix to the old one.

`tree__is_empty(tree(T))' has the wrong type signature - the argument
type needs to be `tree(list(T))'.
There are no more calls to `tree__is_empty' after this change.

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