From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 7CF05BBAF for ; Thu, 24 Sep 2009 15:42:37 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowFAEMUu0rRVdvfkGdsb2JhbACRY4hfPwEBAQEJCQwHEwOrUI9tAQMCBIQXBYI9DoY9 X-IronPort-AV: E=Sophos;i="4.44,445,1249250400"; d="scan'208";a="47199914" Received: from mail-ew0-f223.google.com ([209.85.219.223]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Sep 2009 15:42:37 +0200 Received: by ewy23 with SMTP id 23so1641577ewy.26 for ; Thu, 24 Sep 2009 06:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=0q2XjA5VFGWu7iWQOgqxc7Tsdt54aEDlnefQHmSfx58=; b=UghNHCZa8NHAJ48YCOMMbA95XTEaBnQ0qnLl7zSv3/gJwfxvtMdEPmvvvMpVYNAAz6 kXfbRwFItR/EqsYvQ0OeyG91k3ElbswakTCvmI+zWcSYSmc8Q9U7fn7HOKzVbbHJ6OMe OwhamfFJ4Zyz0IGmwlBMe4RzCziMUSibfu9iA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=sifq2jT7dGW7j4vlQFXF7MjhacmKxfrUBFC+zldP7oFMd2+ahrz7QLVEzrFe3joHa6 Uu0ceCEJBOHCtBGd7MMnLdSXa9XSyGgF7IUpkGNEjn4R9WOxgBzjRMhxIUHIy1rVIWb+ IGUQD2zZfuLxM0d+Mrgq3hGplqZZ21szUN6p8= MIME-Version: 1.0 Sender: daniel.c.buenzli@gmail.com Received: by 10.211.132.28 with SMTP id j28mr7420345ebn.56.1253799756838; Thu, 24 Sep 2009 06:42:36 -0700 (PDT) In-Reply-To: <4ABB2264.1090409@citycable.ch> References: <4ABB2264.1090409@citycable.ch> Date: Thu, 24 Sep 2009 18:42:36 +0500 X-Google-Sender-Auth: fec4255cacf9381e Message-ID: <91a3da520909240642p1df60421k209e7ae16e9403ef@mail.gmail.com> Subject: Re: React.E.switch issue. From: =?UTF-8?Q?Daniel_B=C3=BCnzli?= To: guillaume.yziquel@citycable.ch Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; buenzli:01 snippets:01 explicitely:01 combinators:01 invoke:01 parsed:01 functions:01 functions:01 primitive:02 primitive:02 seems:03 let:03 daniel:04 daniel:04 fix:05 > 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