[mercury-users] Higher-order insts

Fergus Henderson fjh at cs.mu.OZ.AU
Mon May 31 06:48:39 AEST 2004

On 19-May-2004, Peter Hawkins <peter at hawkins.emu.id.au> wrote:
> Is there a way of storing a closure including higher-order insts in a data 
> structure and getting it back again?

Yes.  David Overton gave some good hints.

It is a little easier if you use det functions rather than procedures,
because in that case you normally don't need to explicitly annotate the modes.

Fergus Henderson                    |  "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-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list