From: hammer@cs.uchicago.edu (MATTHEW HAMMER)
To: caml-list@inria.fr
Subject: GC question.
Date: Mon, 24 Oct 2005 12:53:39 -0500 [thread overview]
Message-ID: <20051024175339.GA4331@fast-mail.cs.uchicago.edu> (raw)
Is there more documentation on the stuff in the Obj module?
What I see/know-about is here:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html
I'm very interested in getting (write) access to GC-information on
ocaml values.
Thanks,
Matt
On Mon, Oct 24, 2005 at 05:51:54PM +0900, Keiko Nakata wrote:
> Hello.
>
> Why I cannot have *any types* in signatures of functor arguments?
> Concretely, the following F is not typable.
>
> module F(X:sig type t = [`A of _ ] val f : t -> int end) =
> struct
> let f = function `A x as a -> X.f a | `B -> 0
> end
>
> The above F could be made typable as in
>
> module F(X:sig type s type t = [`A of s ] val f : t -> int end) =
> struct
> let f = function `A x as a -> X.f a | `B -> 0
> end
>
> However, this change requires me to add the type component s
> to every module to which F are going to be applied.
> This is not very nice...
>
> Regards,
> Keiko Nakata
>
>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next reply other threads:[~2005-10-24 17:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-24 17:53 MATTHEW HAMMER [this message]
2005-10-25 18:41 ` [Caml-list] " Damien Doligez
2005-10-25 19:20 ` MATTHEW HAMMER
2005-10-27 14:25 ` Damien Doligez
-- strict thread matches above, loose matches on Subject: below --
2005-07-05 7:59 dmitry grebeniuk
2001-01-13 2:16 Vitaly Lugovsky
2001-01-23 8:29 ` Xavier Leroy
1999-12-23 16:54 Gc Question Damien Doligez
1999-12-12 23:59 skaller
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=20051024175339.GA4331@fast-mail.cs.uchicago.edu \
--to=hammer@cs.uchicago.edu \
--cc=caml-list@inria.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