English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
React.E.switch issue.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-09-24 (13:42)
From: Daniel_BĂĽnzli <daniel.buenzli@e...>
Subject: Re: React.E.switch issue.
> My issue is that the 'reinitialise_with' function is called in a
> function 'phi' which is used in the following way:
> let message_event = React.E.map phi to_be_parsed_event.

Cannot really make sense out of your snippets of code. However this
phi functions seems to invoke a primitive event sending function and
that's explicitely prohibited by the documentation. Primitive event
sending/signal setting functions cannot be invoked as side effects
inside update cycles (see doc of E.create/S.create).

Not sure what you are trying to achieve but I suspect fixed point
combinators (E.fix/S.fix) may help you to solve your problem.