From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2C14ABC69 for ; Mon, 30 Oct 2006 13:41:23 +0100 (CET) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k9UCfKfc020517 for ; Mon, 30 Oct 2006 13:41:22 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 733D820A19 for ; Mon, 30 Oct 2006 15:41:07 +0300 (MSK) Received: by ermine.home (Postfix, from userid 1001) id 2C3723A9CD0; Mon, 30 Oct 2006 15:42:23 +0300 (MSK) Date: Mon, 30 Oct 2006 15:42:23 +0300 From: Anastasia Gornostaeva To: caml-list@yquem.inria.fr Subject: class and printf Message-ID: <20061030124223.GA46814@ermine.home> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Miltered: at concorde with ID 4545F2F0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; printf:01 foo:01 myprintf:01 printf:01 fprintf:01 compiler:01 myprintf:01 drink:98 unbound:01 compile:01 unit:03 channel:05 object:09 end:12 type:14 Hello. What I need to drink to compile it? class foo ch = object method myprintf = Printf.fprintf ch end The compiler says The method myprintf has type ('a, out_channel, unit) format -> 'a where 'a is unbound