Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] private methods too private?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] private methods too private?
On Tue, Oct 05, 2004 at 04:31:40PM -0400, Shaddin Doghmi wrote:
> Private methods in an object are visible only inside that object. I 
> would like to have methods that can be invoked by other objects of that 
> class, but not anywhere else.  Is it possible to do something like this, 
> and if so what is the preferred way to do it?

Friends, I think:

http://caml.inria.fr/ocaml/htmlman/manual005.html#ss:friends

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
NET::FTPSERVER is a full-featured, secure, configurable, database-backed
FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/