From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA10902; Thu, 25 Apr 2002 13:19:27 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA10836 for ; Thu, 25 Apr 2002 13:19:26 +0200 (MET DST) Received: from kiefer.ai.univie.ac.at (kiefer.ai.univie.ac.at [131.130.174.157]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3PBJHT27747; Thu, 25 Apr 2002 13:19:19 +0200 (MET DST) Received: (from markus@localhost) by kiefer.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id NAA31277; Thu, 25 Apr 2002 13:19:06 +0200 Date: Thu, 25 Apr 2002 13:19:05 +0200 From: Markus Mottl To: Daniel de Rauglaudre Cc: caml-list@inria.fr Subject: Re: [Caml-list] How to read three integers from a text-file... ? Message-ID: <20020425111905.GA31096@kiefer.ai.univie.ac.at> Mail-Followup-To: Daniel de Rauglaudre , caml-list@inria.fr References: <15557.14957.358556.545541@absurd.mimuw.edu.pl> <20020424212316.GA26318@cs.net.pl> <20020425105559.C392@verdot.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020425105559.C392@verdot.inria.fr> User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 25 Apr 2002, Daniel de Rauglaudre wrote: > I think that it should be possible to have a Camlp4 syntax extension > to have the equivalent of the C function scanf. I can try to implement > that, if people are interested. > > BTW, it is perfectly possible to write printf as a Camlp4 syntax > extension not using the special type "format". In such an implementation, > "printf" is a keyword always followed by a string. Camlp4 analyses the > string and generates calls to print_string, print_int, and so on. The > result is normally typed by OCaml. These are interesting proposals! I am sure that others would appreciate this very much, too... Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners