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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id B1C7D7F706 for ; Wed, 25 Dec 2013 04:03:17 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.161; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.161 as permitted sender) identity=mailfrom; client-ip=134.160.33.161; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.161 as permitted sender) identity=helo; client-ip=134.160.33.161; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQBAONJulKGoCGhnGdsb2JhbABYv0kOAQEBAQEGDQkJFCiCZEA9FhgDAgECAVgIAQGIAKEZqCePOoQgAQOJQY5WhkWPCw X-IPAS-Result: AqQBAONJulKGoCGhnGdsb2JhbABYv0kOAQEBAQEGDQkJFCiCZEA9FhgDAgECAVgIAQGIAKEZqCePOoQgAQOJQY5WhkWPCw X-IronPort-AV: E=Sophos;i="4.95,546,1384297200"; d="scan'208";a="42238115" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail3-smtp-sop.national.inria.fr with ESMTP; 25 Dec 2013 04:03:15 +0100 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 6177132C01FE; Wed, 25 Dec 2013 12:03:13 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 4606F32A0090; Wed, 25 Dec 2013 12:03:13 +0900 (JST) Message-ID: <52BA4AF0.7040203@riken.jp> Date: Wed, 25 Dec 2013 12:03:12 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.25.25714 Subject: [Caml-list] signature of a lazy Printf.sprintf-like Hello, Is is possible to create a sprintf which is lazy? Especially, I don't know what signature it should have in the .mli file. I am fighting with types because the function is supposed to accept a variable number of parameters after the format string. If I manage to create a compilable signature, then I cannot any-more use a variable number of parameters. Merry Christmas, Francois.