From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 31423BB83 for ; Thu, 17 Aug 2006 13:48:02 +0200 (CEST) Received: from [128.93.11.95] (estephe.inria.fr [128.93.11.95]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7HBm1ag026977; Thu, 17 Aug 2006 13:48:01 +0200 Message-ID: <44E45771.3090805@inria.fr> Date: Thu, 17 Aug 2006 13:48:01 +0200 From: Xavier Leroy User-Agent: Mozilla Thunderbird 1.0.6-6mdk (X11/20050322) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Dynamic loading of bytecode References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; bytecode:01 hiearchy:01 toploop:01 makefile:01 ocamlc:01 mylib:01 cmo:01 cmo:01 toplevel:01 mylib:01 caml-list:01 cma:01 cma:01 modules:02 dependent:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 > How can you load the whole module hiearchy (many modules, dependent on > one another) with a single command in toploop? You cannot. However, you could build a .cma archive via a Makefile: ocamlc -a -o mylib.cma a.cmo b.cmo and issue the toplevel command #load "mylib.cma", which will load both module implementations at once. - Xavier Leroy