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 WAA19594; Wed, 29 Oct 2003 22:09:43 +0100 (MET) 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 WAA05389 for ; Wed, 29 Oct 2003 22:09:42 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9TL9f119123 for ; Wed, 29 Oct 2003 22:09:41 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AExYx-0001lY-00; Wed, 29 Oct 2003 21:09:07 +0000 Date: Wed, 29 Oct 2003 21:09:07 +0000 To: skaller Cc: caml-list@inria.fr Subject: Re: [Caml-list] non-exported functions Message-ID: <20031029210907.GA6753@redhat.com> References: <728D3F38-09A4-11D8-B9F5-000393CFE6B8@spy.net> <1067451946.2160.7.camel@pelican> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1067451946.2160.7.camel@pelican> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 1100,:01 mli:01 mli:01 freshmeat:01 team's:01 ltd:98 thread:02 business:96 classes:03 wrote:03 annoying:03 bind:03 interface:03 interface:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Oct 30, 2003 at 05:25:47AM +1100, skaller wrote: > Aw, its kind of annoying. Two or three extra keywords might > fix 95% of cases: > > let private x = ... > > Just don't put x in the interface > > type abstract x = .. > > put x in the interface as > > type x This is a good idea (although in practice writing .mli files isn't too much of a bind for me). Still, every little bit helps. For classes I've started ALWAYS doing .mli files because that way you can control private/protected/public methods very accurately. See the other thread on this issue. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. 'There is a joke about American engineers and French engineers. The American team brings a prototype to the French team. The French team's response is: "Well, it works fine in practice; but how will it hold up in theory?"' ------------------- 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