Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* As-binding #-types
@ 1996-09-12  9:53 Frank Christoph
  1996-09-12 11:56 ` Jerome Vouillon
  1996-09-12 12:13 ` As-binding #-types/Evaluation order & State Frank Christoph
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Christoph @ 1996-09-12  9:53 UTC (permalink / raw)
  To: caml-list


  The manual says you can use "as" to bind row variables in a type, so
"#myclass as 'a -> 'a" would be the type of a function to and from equal
types, instead of possibly different descendants of "#myclass".

  But I've had trouble using this type expression in type definitions.

  #type 'a mytype = Mk of #myclass;;
  Unbound row variable in #myclass

is an error as expected, but

  #type 'a mytype = Mk of #myclass as 'a;;
  Unbound row variable in #myclass

yields the same problem.  Shouldn't this be possible?

------------------------------------------------------------------------
Frank Christoph                 Next Solution Co.      Tel: 0424-98-1811
christo@nextsolution.co.jp                             Fax: 0424-98-1500





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

end of thread, other threads:[~1996-09-13  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-12  9:53 As-binding #-types Frank Christoph
1996-09-12 11:56 ` Jerome Vouillon
1996-09-12 12:13 ` As-binding #-types/Evaluation order & State Frank Christoph
1996-09-13  9:24   ` Francois Rouaix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox