English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Instruction selection in the OCaml compiler: Modules or classes?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-23 (19:14)
From: Andreas Rossberg <AndreasRossberg@w...>
Subject: Re: [Caml-list] Instruction selection in the OCaml compiler: Modulesor classes?
Tom <tom.primozic@gmail.com> wrote:
> I think you should take a look at another currently active thread  -
> "Feature request : Tuples vs. records". One of the red lines there is the
> comparison of structural versus nominal typing - classes and objects
> belonging to the former, and modules and records to the latter.

Not exactly: ML modules employ fully structural typing and subtyping. That 
is their big strength, in contrast to comparable features in most other 
languages (particularly typical notions of class).

- Andreas