Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Wierd??? Doesn't compile under emacs edit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: art yerkes <ayerkes@s...>
Subject: Re: [Caml-list] Wierd??? Doesn't compile under emacs edit
On Sat, 22 Nov 2003 00:53:46 +0000
"chris.danx" <chris.danx@ntlworld.com> 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