From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA02931 for caml-redistribution; Wed, 12 Aug 1998 22:45:13 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA31907 for ; Thu, 6 Aug 1998 10:31:25 +0200 (MET DST) Received: from wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.69]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id KAA12695 for ; Thu, 6 Aug 1998 10:31:23 +0200 (MET DST) Received: from aralia.wanadoo.fr [193.252.19.42] by wanadoo.fr for Paris Thu, 6 Aug 1998 10:31:07 +0200 (MET DST) Received: from tntaub1-176.abo.wanadoo.fr [193.252.211.176] by smtp.wanadoo.fr for Paris Thu, 6 Aug 1998 10:31:07 +0200 (MET DST) Message-Id: <199808060831.KAA01652@wanadoo.fr> From: "Alain Frisch" To: caml-list@inria.fr Date: Thu, 6 Aug 1998 10:32:45 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Subject: =?ISO-8859-1?Q?Implémentation_de_printf?= Priority: normal Sender: weis Bonjour à tous, je cherche à créer une fonction du genre : let affiche format arg = mon_affichage (sprintf format arg);; mais qui accepte des formats avec plusieurs paramètres. Est-ce possible (j'utilise Caml Light 0.7). D'autre part, en consultant le code source de printf (version 0.6), il me vient quelques questions : que sont les fonctions magic, is_block, repr, obj_tag ? Est-il possible de créer soi même une fonction du style printf (ie: nombre et type d'arguments variable suivant la valeur d'un paramètre) ? Merci. Alain FRISCH alfie2@mygale.org yala.frisch@wanadoo.fr http://www.mygale.org/05/alfie2/ ICQ#:16299088