caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Very very short question on objects
@ 1999-10-25  9:46 Christian RINDERKNECHT
  1999-10-25 19:31 ` William Chesters
  1999-10-25 20:33 ` Emmanuel CHAILLOUX
  0 siblings, 2 replies; 3+ messages in thread
From: Christian RINDERKNECHT @ 1999-10-25  9:46 UTC (permalink / raw)
  To: caml-list

Hi everybody,

I'm getting started with OCaml objects and, trying to compose
functional updates, I ran into something like the following
toy example:

        Objective Caml version 2.02
 
# class x = 
    object
      method private f = ()
      method g = {< >} # f
    end
  ;;
class x : object method f : unit method g : unit end
# 

Method [f] is not private... Shouldn't be this an error?


Best regards,

Christian

-----------------------------------------------------------------------
Christian Rinderknecht                     Phone +33 (0)1 60 76 44 43
Institut National des Télécommunications   Fax   +33 (0)1 60 76 47 11
Département Logiciels Réseaux (LOR)        WWW
9, Rue Charles Fourier, F-91011 Évry Cedex




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-10-26  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-25  9:46 Very very short question on objects Christian RINDERKNECHT
1999-10-25 19:31 ` William Chesters
1999-10-25 20:33 ` Emmanuel CHAILLOUX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).