From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 20165BC75 for ; Tue, 22 Feb 2005 18:21:02 +0100 (CET) Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1MHL0Hf020249 for ; Tue, 22 Feb 2005 18:21:01 +0100 Received: from albini.isi.edu (albini.isi.edu [128.9.216.111]) by vapor.isi.edu (8.11.6p2+0917/8.11.2) with ESMTP id j1MHKVB28680 for ; Tue, 22 Feb 2005 09:20:31 -0800 (PST) Date: Tue, 22 Feb 2005 09:20:31 -0800 (PST) From: Hal Daume III To: Caml Mailing List Subject: disagreement over interface Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-ISI-4-38-10-MailScanner: Found to be clean X-MailScanner-From: hdaume@isi.edu X-Miltered: at nez-perce with ID 421B69FC.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; foo:01 ocamlc:01 foo:01 cmo:01 ocaml:01 toplevel:01 cmo:01 bytecode:01 recompile:01 ocamlc:01 maths:02 talks:02 remedy:94 interface:05 interface:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Say I have foo.ml and I ocamlc -c foo.ml to produce foo.cmo. Then in the ocaml toplevel, I do: #load "foo.cmo";; to load the bytecode. Now, I make changes to foo.ml and recompile it: ocamlc -c foo.ml If I then go to reload it, I get: #load "foo.cmo";; The files foo.cmo and foo.cmo disagree over interface Foo The only way I have found to remedy this is to quit my current top level, rerun and then load foo.cmo from there, but this is a major pain. I assume I'm just missing something stupid. Can someone tell me what to do? Thanks! - Hal -- Hal Daume III | hdaume@isi.edu "Arrest this man, he talks in maths." | www.isi.edu/~hdaume