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 KAA10581; Wed, 1 May 2002 10:46:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 KAA10577 for ; Wed, 1 May 2002 10:46:48 +0200 (MET DST) Received: from mailrelay2.inwind.it (mailrelay2.inwind.it [212.141.54.102]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g418klD11023 for ; Wed, 1 May 2002 10:46:47 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.127.165) by mailrelay2.inwind.it (6.5.015) id 3CAA382B0123020B for caml-list@inria.fr; Wed, 1 May 2002 10:46:50 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.3/8.12.3/Debian -5) with ESMTP id g418khji003249 for ; Wed, 1 May 2002 10:46:46 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.3/8.12.3/Debian -6) with ESMTP id g418kgXp012708 for ; Wed, 1 May 2002 10:46:42 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.3/8.12.3/Debian -6) id g418kgsK012706 for caml-list@inria.fr; Wed, 1 May 2002 10:46:42 +0200 Date: Wed, 1 May 2002 10:46:42 +0200 From: Stefano Zacchiroli To: Inria Ocaml Mailing List Subject: [Caml-list] local modules in classes Message-ID: <20020501084642.GC12657@cs.unibo.it> Mail-Followup-To: Inria Ocaml Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi OCamlers, I'm wondering why I can't use a local definition of a module in a class: # class foo = let module P = Printf in object method foo = a end;; Syntax error Is there a soundness problem with the OCaml type system or is this simply an unimplemented feature? TIA, Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- 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