caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Polymorphic method problem
@ 2004-07-06 18:23 Christian Szegedy
  2004-07-06 21:38 ` Alex Baretta
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Christian Szegedy @ 2004-07-06 18:23 UTC (permalink / raw)
  To: caml-list

Can anyone tell me, why does the following piece of
code fail to compile, and how can I achieve
equivalent effect in the most convenient way?

class a () =
   object(self)
      method f : 'a. ((< f : unit; .. > as 'a) -> unit) = fun other -> 
other#f 
      method g = (self :> a)
   end

Thanks in advance!


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2004-07-08 22:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 18:23 [Caml-list] Polymorphic method problem Christian Szegedy
2004-07-06 21:38 ` Alex Baretta
2004-07-06 22:00   ` Christian Szegedy
2004-07-06 23:16     ` William Lovas
2004-07-06 23:53       ` Alex Baretta
2004-07-06 23:44 ` Olivier Andrieu
2004-07-07  1:53 ` Jacques GARRIGUE
2004-07-08 22:51   ` Christian Szegedy

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