[m-dev.] taking the address of field access functions

Ian MacLarty maclarty at cs.mu.OZ.AU
Fri Jun 30 12:18:50 AEST 2006


Hello,

Is there some fundamental reason we don't allow passing field access
functions as higher order terms?  I saw some comments in the compiler
saying it wasn't allowed, but non saying *why* it wasn't allowd.  I have
some cases where this would be useful.  Of course I can just define a
wrapper function that calls the field access function, but I don't see
why I shouldn't be able to pass the field access function itself.

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