* [Caml-list] stacking abstract base classes
@ 2001-11-21 20:33 Francois Rouaix
0 siblings, 0 replies; only message in thread
From: Francois Rouaix @ 2001-11-21 20:33 UTC (permalink / raw)
To: caml-list
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
end
class virtual b = object
inherit a as super
method x = pred super#x
end
Without getting this:
$ ocamlc /tmp/x.ml
File "/tmp/x.ml", line 7, characters 17-22:
This expression has no method x
(using OCaml 3.02)
--f
François Rouaix
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-11-21 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-21 20:33 [Caml-list] stacking abstract base classes Francois Rouaix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox