Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Sylvain BOULM'E" <Sylvain.Boulme@lip6.fr>
To: Emmanuel Engel <Emmanuel.Engel@lri.fr>
Cc: caml-list@inria.fr
Subject: Re: Classe recursive et heritage
Date: Tue, 23 Jun 1998 11:17:12 +0200	[thread overview]
Message-ID: <199806230917.LAA13694@ventoux.lip6.fr> (raw)
In-Reply-To: Your message of "Sun, 21 Jun 1998 16:05:37 +0200." <358D1330.89DB13F9@lri.fr>

Bonjour,

En fait, ce que vous demandez, existe deja : on peut designer
le type de "self" par une variable de type

ie class ('a)tree (g:'b) (d:'b) as self :'b =

On n'a meme une syntaxe plus legere quand on n'a pas besoin
du "self":

class ('a)tree (g:'b) (d:'b) :'b =
  val fg = g
  val fd = d
end;;

class ('a)labelled_tree g d (i:int)=
  inherit ('a)tree g d
  val un_entier = i
end;;


Cordialement,

Sylvain. 





  reply	other threads:[~1998-06-23 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-21 14:05 Emmanuel Engel
1998-06-23  9:17 ` Sylvain BOULM'E [this message]
1998-06-23 11:01 ` Wolfgang Lux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199806230917.LAA13694@ventoux.lip6.fr \
    --to=sylvain.boulme@lip6.fr \
    --cc=Emmanuel.Engel@lri.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox