caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: guillaume.yziquel@citycable.ch
Cc: caml-list@inria.fr
Subject: Re: React.E.switch issue.
Date: Thu, 24 Sep 2009 18:42:36 +0500	[thread overview]
Message-ID: <91a3da520909240642p1df60421k209e7ae16e9403ef@mail.gmail.com> (raw)
In-Reply-To: <4ABB2264.1090409@citycable.ch>

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

Best,

Daniel


  parent reply	other threads:[~2009-09-24 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24  7:40 Guillaume Yziquel
2009-09-24  8:01 ` Guillaume Yziquel
2009-09-24 13:42 ` Daniel Bünzli [this message]
2009-09-24 14:14   ` Guillaume Yziquel
2009-09-28 11:57     ` Daniel Bünzli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91a3da520909240642p1df60421k209e7ae16e9403ef@mail.gmail.com \
    --to=daniel.buenzli@erratique.ch \
    --cc=caml-list@inria.fr \
    --cc=guillaume.yziquel@citycable.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).