From: Remi V. <van...@la...> - 2003-04-18 11:02:03
|
"Nicolas Cannasse" <war...@fr...> writes: > Hi list ! > > I think it would be better to reduce the size of the code and not to > duplicate Ocaml Stdlib source code to simply use the "include" keyword. > So for example our extHashtbl.ml file would looks like : > > module Hashtbl = struct > include Hashtbl (* the OCaml std lib one *) > (** add new functions **) > end > > This way we can even override the OCaml StdLib functions by redefining them > after the include statement. > I think it would be nice to reduce this way the extList.ml code to only > modified/new functions, that would make things a lot clearer and results a > lower code size. > > What do you think of it ? Seem a good Idea. -- Rémi Vanicat va...@la... http://dept-info.labri.u-bordeaux.fr/~vanicat |