Python 1.6 The balanced language

Alex Martelli aleaxit at yahoo.com
Fri Sep 1 17:38:18 EDT 2000


"Suchandra Thapa" <ssthapa at harper.uchicago.edu> wrote in message
news:slrn8qu0jh.uj.ssthapa at hepcat.uchicago.edu...
    [snip]
>     Incidentally, what do you mean by dynamic dispatch?  ML and its
> dialect OCaml are statically typed and the compiler chooses which function
> to call at compile time.  Would you consider OCaml to be OO then?  And
isn't

See http://caml.inria.fr/ocaml/htmlman/manual004.html for an
introduction to the object-oriented features of O'Caml.  While the
static typing still holds, the behaviour over class methods is
polymorphic -- much as in Eiffel, C++, Sather, Java, and other
compile-time-typed OO languages, what version of a method is
actually called depends on the runtime type of the object instance
being used.  Thus, dynamic dispatch, aka runtime dispatch.


Alex






More information about the Python-list mailing list