From: "Johan Baltié" <johan.baltie@wanadoo.fr>
To: Laurent Vibert <lvibert@irisa.fr>, Alessandro Baretta <alex@baretta.com>
Cc: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Recovering masked methods
Date: Tue, 16 Jul 2002 11:08:17 +0100 [thread overview]
Message-ID: <20020716100817.M78824@wanadoo.fr> (raw)
In-Reply-To: <Pine.LNX.4.21.0207161144410.27236-100000@paros.irisa.fr>
> On Tue, 16 Jul 2002, Alessandro Baretta wrote:
>
> > class a =
> > object
> > ...
> > end
> >
> > class b =
> > object
> > inherit a
> > ...
> > end
> >
> > class c =
> > object
> > inherit a as super_a through b as super_b { through
> > <class> as <identifier> }*
> > ...
> > end
> >
>
> isn't multiple inheritance enougth for this ?
>
> class c =
> object
> inherit a as super_a
> inherit b as super_b
> method m = super_a # m
> (* other method are left unchanged *)
> end
And if
class c =
object
inherit a as super_a
inherit b as super_b
end
Which one "c#m" will call ?
By experiments c#m = b#m, but
class c =
object
inherit b as super_b
inherit a as super_a
end
means c#m = a#m....
I do not even know what kindda behavior a "virtual" will generate !
Is there any way to forbid such dangerous thing ?
Ciao
Jo
-------------------
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
next prev parent reply other threads:[~2002-07-16 10:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-15 23:13 Alessandro Baretta
2002-07-16 1:15 ` Jacques Garrigue
2002-07-16 9:28 ` Alessandro Baretta
2002-07-16 9:48 ` Laurent Vibert
2002-07-16 10:08 ` Johan Baltié [this message]
2002-07-16 10:10 ` Alessandro Baretta
2002-07-16 9:59 ` Johan Baltié
2002-07-16 11:08 ` [Caml-list] Recovering masked methods (with CamlP4?) Alessandro Baretta
2002-07-16 11:32 ` Johan Baltié
2002-07-16 12:52 ` Alessandro Baretta
2002-07-16 12:26 ` Daniel de Rauglaudre
2002-07-16 12:54 ` Alessandro Baretta
2002-07-17 9:26 ` Daniel de Rauglaudre
2002-07-16 13:32 ` John Prevost
2002-07-16 13:35 ` John Prevost
2002-07-16 14:06 ` Alessandro Baretta
2002-07-16 14:15 ` Johan Baltié
2002-07-16 14:29 ` Alessandro Baretta
2002-11-11 9:20 ` Eray Ozkural
2002-07-16 10:45 ` [Caml-list] Recovering masked methods John Prevost
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=20020716100817.M78824@wanadoo.fr \
--to=johan.baltie@wanadoo.fr \
--cc=alex@baretta.com \
--cc=caml-list@inria.fr \
--cc=lvibert@irisa.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