[mercury-users] memo and zero-arity functions
Julien Fischer
juliensf at csse.unimelb.edu.au
Mon Jul 31 12:24:42 AEST 2006
On Mon, 31 Jul 2006, Michael Day wrote:
>
> Hi Julian,
>
>> I would suggest using a constant mutable rather than memoization in this
>> situation. (See section 9.6 of the reference manual.)
>
> Yes, that would be nice, however it doesn't seem to compile when
> intermodule optimisation is enabled:
>
> Mercury/asm_fast.gc/i686-pc-linux-gnu/Mercury/opts/css.style.opt: In
> function `engine_module20':
> Mercury/asm_fast.gc/i686-pc-linux-gnu/Mercury/opts/css.style.opt:391: error:
> `css__style__mutable_variable_root_style_var' undeclared (first use in this
> function)
That's odd, mutables *should* (and, last I checked, did) work with
intermodule optimization enabled. I'll take a look at it. Presumably
this was a constant mutable?
Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list