caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom Ridge <tom.j.ridge+list@googlemail.com>
To: Alain Frisch <alain@frisch.fr>
Cc: Goswin von Brederlow <goswin-v-b@web.de>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Question about objects and method overriding
Date: Mon, 3 Feb 2014 15:12:30 +0000	[thread overview]
Message-ID: <CABooLwNHQx8Sjb6iWyShjrFUvqp98xd=pfM=3ec7ET3H-M6K3Q@mail.gmail.com> (raw)
In-Reply-To: <52EF9FD7.7080204@frisch.fr>

>
> For a given list of methods, one can define safe (I believe!) instances of
> unsafe_override, for instance:
>
> let override_x_y : (< x : 'x; y : 'y; .. > as 'this) -> < x : 'x; y : 'y >
> -> 'this = unsafe_override;;
>
>
> This function can be used to override methods x and y of an object having
> these methods and potentially more.
>

I think this is exactly what I want! Thanks.

  reply	other threads:[~2014-02-03 15:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-02 11:55 Tom Ridge
2014-02-02 12:43 ` Jacques Garrigue
2014-02-02 12:50   ` Tom Ridge
2014-02-03 10:35 ` Goswin von Brederlow
2014-02-03 12:24   ` Tom Ridge
2014-02-03 15:54     ` Goswin von Brederlow
2014-02-03 13:55   ` Alain Frisch
2014-02-03 15:12     ` Tom Ridge [this message]
2014-02-05 18:22 ` remy

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='CABooLwNHQx8Sjb6iWyShjrFUvqp98xd=pfM=3ec7ET3H-M6K3Q@mail.gmail.com' \
    --to=tom.j.ridge+list@googlemail.com \
    --cc=alain@frisch.fr \
    --cc=caml-list@inria.fr \
    --cc=goswin-v-b@web.de \
    /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).