[m-rev.] for review: arrays and the debugger

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Jun 16 02:51:31 AEST 2001


On 15-Jun-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> library/std_util.m:
> 	Add a new predicate, limited_deconstruct, which usually does what
> 	deconstruct does, but fails (and does not allocate any memory) if
> 	the arity of the supplied term is beyond a given limit.

Why not just use functor/3 to test the arity,
and then call deconstruct/4 or not depending on the arity returned by
fnuctor/3?

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