From: Nicolas C. <war...@fr...> - 2003-02-28 02:31:38
|
> > How would you go about packaging these in the extlib so that they can be > > more or less seamlessly integrated with the stdlib. A single overarching > > file-module? > > As someone suggested earlier on this list, I'd favor something like: > > module Ext = > struct > module List = > struct > include List > ... <our extensions go here> > end > > module String = > struct > include String > ... <our extensions go here> > end > ... > end Linkage of binaries in bytecode application is made on a per-file basis ( and not per-module or per-function ). So in order to keep the bytecode size small, we'll have to use several files (that's just what's the stdlib is doing). Nicolas Cannasse |