caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: newton@MIT.EDU, caml-list@inria.fr
Subject: Re: [Caml-list] Is there a compact syntax for masking methods in an inherit
Date: Wed, 10 Sep 2003 10:06:58 +0900	[thread overview]
Message-ID: <20030910100658A.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <1063148703.27949.43.camel@moremischief>

From: "Ryan R. Newton" <newton@MIT.EDU>
> 
> > >    class c =
> > >    object
> > >      inherit a
> >        method virtual g : int
> > >      inherit b  
> > >      method h = 99
> > >    end
> 
> > Would this avoid your problem?
> > Other solutions would imply new syntax, for something that is no more
> > than a warning.
> 
> Yes, that would be super cool.  That solution provides exactly what I
> wanted, which was an explicit articulation *in the code* of which
> methods are being overridden, for readabilities' sake.  (So I think I'll
> start doing that regardless of whether it disables the warnings.)

OK, I've commited the change, and the warning is now effectively
disabled in this case. Only the warning behaviour is changed.

This will be in 3.07, except if somebody has a good reason against it.

Jacques Garrigue

-------------------
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


      parent reply	other threads:[~2003-09-10  1:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-06 22:26 Ryan R Newton
2003-09-07  8:03 ` Jacques Garrigue
     [not found]   ` <1063148703.27949.43.camel@moremischief>
2003-09-10  1:06     ` Jacques Garrigue [this message]

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=20030910100658A.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=newton@MIT.EDU \
    /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;
as well as URLs for NNTP newsgroup(s).