From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 45E8C7EE1A for ; Fri, 30 Nov 2012 15:32:45 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of thelema314@gmail.com) identity=pra; client-ip=209.85.210.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="thelema314@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of thelema314@gmail.com designates 209.85.210.182 as permitted sender) identity=mailfrom; client-ip=209.85.210.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="thelema314@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ia0-f182.google.com) identity=helo; client-ip=209.85.210.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="postmaster@mail-ia0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoBAFrCuFDRVdK2mGdsb2JhbABEhWW6HwgWDgEBAQEBCAkNBxQngh4BAQU4CAEbHAIDDAYFCw0JFg8JAwIBAgEREQEFARwTCAEBh3kBAw+hFowzgnqFBwoZJw1ZiHUBBQyMNIEagycDiF2NI4VriHk/hDE X-IronPort-AV: E=Sophos;i="4.84,191,1355094000"; d="scan'208";a="183993713" Received: from mail-ia0-f182.google.com ([209.85.210.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Nov 2012 15:32:44 +0100 Received: by mail-ia0-f182.google.com with SMTP id x2so676999iad.27 for ; Fri, 30 Nov 2012 06:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=8d68N+jW8PfPr+uCWtQyf0NSWEtm1TkutEEGE+pZb8o=; b=RhgFBEqxte927mIjl7yBf5APNJwTix76omJEWIl2nB1AFFytHsgTGt0LzRxQR1CraC w1Cd6fWe//IAEvr83AuOPrUg62YmcVwQvoR/rqlQJRmlAgoErBht7DCoXrkrrOuSIXwJ LqOD/AhBalxGzQLs+JJtyoG7BjOE28272d5ojisHakuE4d/9/69H93JM5+UEh0irIWhE vIbS7xByptv3+g25vcEuzWN0DNwyjxObpYtQajkpEqe44xkq3f3ohDvHXpNsL02ZVe7l aLE4c4LisKBrSs9VCu+Mp0EweXD7VqjCKjUSOlSiOFC6g+1VU7H5UWgjVr6TkF3pRTYo FvAA== Received: by 10.50.104.232 with SMTP id gh8mr29529901igb.45.1354285963432; Fri, 30 Nov 2012 06:32:43 -0800 (PST) Received: from [192.168.4.18] (99-121-78-10.lightspeed.lnngmi.sbcglobal.net. [99.121.78.10]) by mx.google.com with ESMTPS id i10sm10101940igb.12.2012.11.30.06.32.41 (version=SSLv3 cipher=OTHER); Fri, 30 Nov 2012 06:32:42 -0800 (PST) Message-ID: <50B8C38A.3040306@gmail.com> Date: Fri, 30 Nov 2012 09:32:42 -0500 From: Edgar Friendly User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <50B87A3B.9060505@riken.jp> In-Reply-To: <50B87A3B.9060505@riken.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] string to Printf format type conversion You should be able to chain printfs with: fprintf out "Color: %a" C.to_string_format color E. On 11/30/2012 4:19 AM, Francois Berenger wrote: > Hello, > > Is it possible to have: > > --- > open Printf > module C = Color > > (* this *) > fprintf out (C.to_string_format color); > (* instead of *) > fprintf out "%s" (C.to_string color); > --- > > What should be the code of to_string_format > if it is possible to do so? > > Thanks a lot, > F. >