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] stacking abstract base classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Francois Rouaix <frouaix@h...>
Subject: [Caml-list] stacking abstract base classes
I'm trying to stack up several abstract base classes, but apparently
that doesn't fit the current type system. Is there another way to do
this :

class virtual a = object
 method virtual x : int

class virtual b = object
 inherit a as super
 method x = pred super#x

Without getting this:

$ ocamlc /tmp/
File "/tmp/", line 7, characters 17-22:
This expression has no method x

(using OCaml 3.02)
François Rouaix
Bug reports:  FAQ:
To unsubscribe, mail  Archives: