Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Oo.copy
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Babo Attila <attila.babo@g...>
Subject: [Caml-list] Oo.copy
What's wrong with this code? When I try to compile it using ocamlc
3.06 the compiler hangs on Win32 and on Debian Linux as well. The
ocaml interpreter does the same.

It works when I changed Oo.copy self to {<>} or simply self.

class virtual duplicatable =
  object (_ : 'a)
    method virtual dup : 'a

class test =
  object (self)
    inherit duplicatable
    method dup = Oo.copy self

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: