caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Locally abstract parameterized types?
@ 2020-04-18  2:23 Kenichi Asai
  2020-04-18  7:35 ` Gabriel Scherer
  0 siblings, 1 reply; 6+ messages in thread
From: Kenichi Asai @ 2020-04-18  2:23 UTC (permalink / raw)
  To: caml-list

OCaml allows locally abstract types:

let f (type t) x = ...

Can the t take parameters as in 'a t?  I want to have a locally
abstract type that has type parameters.  The manual says the t in
(type t) must be {typeconstr-name}+ which expands to a sequence of
lowercase-ident, so probably this is not allowed...

-- 
Kenichi Asai

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-18 11:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-18  2:23 [Caml-list] Locally abstract parameterized types? Kenichi Asai
2020-04-18  7:35 ` Gabriel Scherer
2020-04-18  9:47   ` Kenichi Asai
2020-04-18 10:01     ` Gabriel Scherer
2020-04-18 10:04     ` Jeremy Yallop
2020-04-18 11:00       ` Kenichi Asai

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