From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C0730BC28 for ; Fri, 5 Nov 2004 16:51:39 +0100 (CET) Received: from ryxa.irisa.fr (ryxa.irisa.fr [131.254.50.45]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA5FpdWn017195 for ; Fri, 5 Nov 2004 16:51:39 +0100 Received: (from pad@localhost) by ryxa.irisa.fr (8.11.6/8.11.6) id iA5Fpcw02566; Fri, 5 Nov 2004 16:51:38 +0100 From: pad@ryxa.irisa.fr To: Wolfgang =?iso-8859-1?q?M=FCller?= Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Print values like the toplevel's printer Reply-To: padiolea@irisa.fr References: <200411051323.13339.wolfgang.mueller2@uni-bayreuth.de> <1065.80.8.0.152.1099661485.squirrel@80.8.0.152> <200411051454.13606.wolfgang.mueller2@uni-bayreuth.de> Date: 05 Nov 2004 16:51:38 +0100 In-Reply-To: <200411051454.13606.wolfgang.mueller2@uni-bayreuth.de> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 418BA18B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; irisa:01 caml-list:01 toplevel's:01 reuse:01 toplevel:01 tracer:01 ocaml:01 reuse:01 toplevel:01 cheers:01 muller:01 writes:01 wolfgang:02 wolfgang:02 ugly:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.0 X-Spam-Level: Wolfgang Müller writes: > > I recently post a message to allow this (with generic print in the subject > > of the message). > > Thanks a lot, but isn't there something more simple without forking processes? well it is quite simple to fork a process :) and it is maximum reuse :) why don't you like this solution ? is it because it is slow ? ugly ? there is some way to improve easily my solution by not forking each time for each call to generic_print by using a pipe with the toplevel (I plan to do a tracer for ocaml better than the #trace using this technique) > > Is there no way to reuse the code that is already in the toplevel? > > Cheers, > Wolfgang