caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kakadu <kakadu.hafanana@gmail.com>
To: Steffen Smolka <smolka@cs.cornell.edu>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] extend object type?
Date: Fri, 10 Feb 2017 11:30:58 +0300	[thread overview]
Message-ID: <CAGmVoG0ygQF_ioMKR9tU4Q3SshbsvuzF_H5S8=8q+TPLfPGvyw@mail.gmail.com> (raw)
In-Reply-To: <CAGh2ivA_QJSutzQDrRM7tamZh=Q4hpZHVxraVwtt7fx9jufuLQ@mail.gmail.com>

AFAIK it is not possible

https://github.com/ocamllabs/compiler-hacking/wiki/Things-to-work-on#support-extending-existing-object-types

Happy hacking,
Kakadu

On Fri, Feb 10, 2017 at 7:15 AM, Steffen Smolka <smolka@cs.cornell.edu> wrote:
> Is there syntax to conveniently extend object types?
> Concretely, for types
>
> type t1 = < f : int >
> type t2 = < f : int; g : bool >
>
> I would like a syntax that allows me to define t2 in terms of t1.
>
> Thanks!
> -- Steffen

  reply	other threads:[~2017-02-10  8:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-10  4:15 Steffen Smolka
2017-02-10  8:30 ` Kakadu [this message]
2017-02-10  9:42 ` Leo White
2017-02-10 14:49 Hongbo Zhang (BLOOMBERG/ 731 LEX)
2017-02-10 16:43 Steffen Smolka

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='CAGmVoG0ygQF_ioMKR9tU4Q3SshbsvuzF_H5S8=8q+TPLfPGvyw@mail.gmail.com' \
    --to=kakadu.hafanana@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=smolka@cs.cornell.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).