Version française
Home     About     Download     Resources     Contact us    
Browse thread
Why can't I call a function over a subclass?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jake Donham <jake.donham@s...>
Subject: Re: [Caml-list] Re: Why can't I call a function over a subclass?
Hi Luca,

Others have given good replies already but you may find this article helpful:

  http://skydeck.com/blog/programming/ocaml-for-the-recovering-java-programmer-part-1-objects-and-subtyping/

What it comes down to is that in OCaml subsumption (i.e. the whole
idea of object oriented programming) is accomplished using
polymorphism, not implicit coercion.

Jake