From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id CBF137FCCB for ; Fri, 1 May 2015 18:42:46 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of omeragacan@gmail.com) identity=pra; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="omeragacan@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of omeragacan@gmail.com designates 74.125.82.44 as permitted sender) identity=mailfrom; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="omeragacan@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f44.google.com) identity=helo; client-ip=74.125.82.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="postmaster@mail-wg0-f44.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AcAgCyrENVmyxSfUpchDsFgxjKNgKBUwc7EQEBAQEBAQERAQEBAQEGCwsJIS6EIQEBBBIRHQEbHQEDDAYFCw8CJgICIgERAQUBHAYTCBqHdAEDEadaPjGLOYFrgnaIWgoZJw1VhEMBAQEBAQEBAwEBAQEBFwEFDoETiheFBQeCaIFFAQScOZQzEiOBDAmEMyIxgkUBAQE X-IPAS-Result: A0AcAgCyrENVmyxSfUpchDsFgxjKNgKBUwc7EQEBAQEBAQERAQEBAQEGCwsJIS6EIQEBBBIRHQEbHQEDDAYFCw8CJgICIgERAQUBHAYTCBqHdAEDEadaPjGLOYFrgnaIWgoZJw1VhEMBAQEBAQEBAwEBAQEBFwEFDoETiheFBQeCaIFFAQScOZQzEiOBDAmEMyIxgkUBAQE X-IronPort-AV: E=Sophos;i="5.13,351,1427752800"; d="scan'208";a="138482712" Received: from mail-wg0-f44.google.com ([74.125.82.44]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 01 May 2015 18:42:37 +0200 Received: by wgso17 with SMTP id o17so95398517wgs.1 for ; Fri, 01 May 2015 09:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PT6ls8Dgjwx0kc0+928oSeKu6i7BnVkXv54ADuZup6Q=; b=eKBtB36t0QcOPHy9jR6U4Nx8lM/HLc9aINOcm3zxb8ZIUypBpFxeiwDeYHYYpEC7ez Nc6wcwxHZX997jGKQTTjtBEvFs4GuwjS9xggC7d9hjJfipKGLphfKM1HUdkgOmfva/RV LFGhs6U+IKRa1gtOqhc6az5Ju2hsyrkUVh1tyjeH0mZ2qWb+qKpJGuah8NMoK/3MZw5I p6bthfRy19mmaUEyF39TpulSbuTq9+kV+3Wy4WfEA1BZvx09UtXved2KWkVqpfV92bVl Rd52YxIqY00b9DO8+Lz5JE6BpZSAQejjjLzhqt1ZYhoE5Kr8y27HXN8fee5GfMtKapyH lNhQ== X-Received: by 10.194.47.231 with SMTP id g7mr19000907wjn.140.1430498556577; Fri, 01 May 2015 09:42:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.187.212 with HTTP; Fri, 1 May 2015 09:41:56 -0700 (PDT) In-Reply-To: <1430496980.1158661.261513285.08E1920C@webmail.messagingengine.com> References: <20150501112114.1C8DFC382A@www1.g3.pair.com> <1430496980.1158661.261513285.08E1920C@webmail.messagingengine.com> From: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Date: Fri, 1 May 2015 12:41:56 -0400 Message-ID: To: Leo White Cc: OCaml Mailing List Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] Problems with printing MetaOCaml generated code 2015-05-01 12:16 GMT-04:00 Leo White : > From a quick look at the code, it seems pretty clear that `eval_ref` is not serializable. > It is a local function so there is no AST fragment which could represent it globally. I > suspect that if you moved `eval_ref` into a separate module, so that it was > a global function, then this code would work. It should serialize `p'`, not `eval_ref`, I'd expect serialization of `eval_ref` to be the identifier `eval_ref`.