[mercury-users] Why not using constructors as HO functions ?

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jul 26 17:51:04 AEST 2001


On 26-Jul-2001, Holger Krug <hkrug at rationalizer.com> wrote:
> I tried to use a constructor as a function in a place where a higher
> order argument is expected, but this seems to be impossible.

Constructors are equivalent to multi-moded functions.  Currently Mercury
doesn't let you use multi-moded functions where a higher-order argument is
expected; you need to use an explicit lambda expression to specify the mode.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  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