[m-dev.] Solver type horribleness...
Ralph Becket
rafe at cs.mu.OZ.AU
Fri Mar 3 14:21:29 AEDT 2006
Peter Hawkins, Thursday, 2 March 2006:
> Hi...
>
> I just thought of this bit of solver type horribleness. Consider this
> program:
>
> :- solver type fd_var.
>
> :- pragma memo(cvar/2).
> :- pred cvar(int::in, fd_var::oa) is det.
> cvar(_, NewFooVar). % NewFooVar is created automatically
I believe this is tantamount to an attempt to have a global
fd_var in your program!
Mark has pointed out a similar issue with functions returning
solver types, which I think needs extending to predicates
such as cvar.
-- Ralph
--------------------------------------------------------------------------
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