[mercury-users] Accessing global state in moose

obo at ruk.cuni.cz obo at ruk.cuni.cz
Tue Feb 24 10:26:53 AEDT 2004


On Tue, 24 Feb 2004, Ralph Becket wrote:
> Can you thread Global through the productions?  For example,
>
> exprn(Num, Global) ---> exprn(A), [+], term(B), { Num = A + B + Global }.

AFAIK no. I've tried it, but moose expects all the arguments of the
productions to be output arguments. There is no mode line for productions.

It's a pity that moose is that immature, because it's very useful for me
and I heavily rely on it (even with the limitations it has, for example
the lambda productions are implemented errorneously). I've tried to
understand moose's code several times, but I always failed. :-(

O.

>
> -- Ralph
> --------------------------------------------------------------------------
> 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
> --------------------------------------------------------------------------
>

--
Ondrej Bojar (mailto:obo at cuni.cz)
http://www.cuni.cz/~obo


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