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=0.0 required=5.0 tests=none 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 3C914BBC1 for ; Fri, 28 Mar 2008 12:45:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhICAN927EdA6bjid2dsb2JhbACRMwEMBQIFCRSTd4VN X-IronPort-AV: E=Sophos;i="4.25,569,1199660400"; d="scan'208";a="24297663" Received: from wr-out-0506.google.com ([64.233.184.226]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Mar 2008 12:45:31 +0100 Received: by wr-out-0506.google.com with SMTP id c30so118445wra.21 for ; Fri, 28 Mar 2008 04:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DeEQugFycBQJ08c9PTkYVE+IvNq+gcknVmXiBmDVl94=; b=RpwV3mDlIpH7Y9VKuisueyEE/oNwOSW/Gwj1zp1e85DJGYBhi+B+99tR7mCpff2MtuUKAlK33Zm1DG3zPdORTMGwzSHiNfApo4Q8wPlmbd/VbidSZPeXoxgJ4jaR6i7kFTHoC+myPkOS1IJT9SrNOQEqbKFnHtk1syNyxDeJzVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QMoH58uxbfecMazLetmgNlSIZg5MD6w03H4IlMFxi54yhhhp+Bwz5R1rbUunL378+38l7MyXodKoNef2hW+WT56pWvycXEu10yV3x0U0JiW3vZ/jMI6GFqINALjOorsF4i1k25S6wdbJcFhPakJr6rBJqG0ItX9X3FWAxJjaKOs= Received: by 10.114.170.1 with SMTP id s1mr3435469wae.133.1206704726644; Fri, 28 Mar 2008 04:45:26 -0700 (PDT) Received: by 10.115.111.17 with HTTP; Fri, 28 Mar 2008 04:45:26 -0700 (PDT) Message-ID: Date: Fri, 28 Mar 2008 11:45:26 +0000 From: "Jim Farrand" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] The Bridge Pattern in OCaml Cc: "Oliver Bandel" In-Reply-To: <1206703811.47ecd6c379853@webmail.in-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4a051d930803190929q60d31012kb6c9d2b03a2d2ca6@mail.gmail.com> <891bd3390803191907q5838ee66u83cb35e549805af0@mail.gmail.com> <200803281206.30620.micha-1@fantasymail.de> <1206703811.47ecd6c379853@webmail.in-berlin.de> X-Spam: no; 0.00; ocaml:01 bandel:01 in-berlin:01 serialize:01 o'caml:01 marshalling:01 serialize:01 wrote:01 oliver:01 oliver:01 caml-list:01 closure:01 behaviour:01 executable:03 seems:03 On 28/03/2008, Oliver Bandel wrote: > It seems that you already know, what things you > want to write to the files No. The opposite in fact. I want to be able to serialize things I (the framework designer) never even thought of. I want the users of my framework to have maximum flexibility to implement whatever behaviour they like, without restricted them to the things I thought of putting into the file format. O'Caml marshalling is in the right direction (take any closure and serialize it, this is very flexible in this respect), but it is far to restricted in other ways to be of use (file format tied to particular executable). Regards, Jim