From: Michael <micha-1@fantasymail.de>
To: "Jérémie Dimino" <jeremie@dimino.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] storing object in record
Date: Wed, 8 Apr 2009 12:29:03 +0200 [thread overview]
Message-ID: <200904081229.03099.micha-1@fantasymail.de> (raw)
In-Reply-To: <1239177288.6630.41.camel@localhost.localdomain>
Am Wednesday 08 April 2009 09:54:48 schrieben Sie:
> There is no value of type: forall 'a. #baseclass as 'a.
is this similar? :
type 'a xx = 'a constraint 'a = < asBase: baseObject; .. > ;;
(why does: type 'a xx = < asBase: baseObject; ..> as 'a not work instead? )
type 'a r = { state: 'a xx };;
gives:
type 'a r = { state : 'a xx; } constraint 'a = < asBase : baseObject; .. >
so the record holds objects with an asBase method and more, isn't this the
same as #baseObject?
Michael
next prev parent reply other threads:[~2009-04-08 10:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 7:36 Michael
2009-04-08 7:54 ` [Caml-list] " Jérémie Dimino
2009-04-08 10:29 ` Michael [this message]
2009-04-08 11:36 ` Jérémie Dimino
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=200904081229.03099.micha-1@fantasymail.de \
--to=micha-1@fantasymail.de \
--cc=caml-list@yquem.inria.fr \
--cc=jeremie@dimino.org \
/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