From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA01896; Sat, 22 Nov 2003 09:05:32 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA00978 for ; Sat, 22 Nov 2003 09:05:30 +0100 (MET) Received: from mail.speakeasy.net ([216.254.0.205]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAM85T104350 for ; Sat, 22 Nov 2003 09:05:29 +0100 (MET) Received: (qmail 5493 invoked from network); 22 Nov 2003 08:05:27 -0000 Received: from unknown (HELO apprentice.genxnet.com) ([64.81.145.152]) (envelope-sender ) by mail.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 Nov 2003 08:05:27 -0000 Date: Sat, 22 Nov 2003 02:19:41 -0600 From: art yerkes To: caml-list@inria.fr Subject: Re: [Caml-list] Wierd??? Doesn't compile under emacs edit Message-Id: <20031122021941.55625460.ayerkes@speakeasy.net> In-Reply-To: <3FBEB39A.5020604@ntlworld.com> References: <3FBEB39A.5020604@ntlworld.com> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yerkes:01 ayerkes:01 caml-list:01 ntlworld:99 nehe:01 gldraw:01 model:01 0.0,:01 0.0,:01 0.0:01 0.0:01 chris:01 chris:01 0000:98 speakeasy:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 22 Nov 2003 00:53:46 +0000 "chris.danx" wrote: > Hi, > > Does anyone here have trouble compiling files edited in emacs? I put > this in a file, but it gives > > File "nehe_two.ml", line 3, characters 2-15: > Unbound value GLClear.color > > > let init_gL = > GlDraw.shade_model `smooth; > GLClear.color (0.0, 0.0, 0.0); Perhaps you mean 'GlClear.color (0.0, 0.0, 0.0) ;' Capitalization matters in O'Caml. Identifiers and modules must have the same capitalization as their definitions, so GLClear and GlClear don't mean the same thing. Emacs will create whatever file you type in, including the wrong one. -- "Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." - S. Kelly-Bootle ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners