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
Base class "constructor" being called multiple times?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: "ocaml_beginners"::[] Base class "constructor" being called multiple times?
Here's another attempt:

method add : 'a. 'a#derived -> unit =
fun w -> Printf.printf "contains: %d\n" w#obj

But what does this error mean???

File "", line 17, characters 21-31:
The type constructor derived expects 0 argument(s),
but is here applied to 1 argument(s)


Richard Jones.
Merjis Ltd. - all your business data are belong to you.
MONOLITH is an advanced framework for writing web applications in C, easier
than using Perl & Java, much faster and smaller, reusable widget-based arch,
database-backed, discussion, chat, calendaring: