Yurik changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml| Early releases of OCamlBDB and OCamlGettext are available
mattam has quit ["leaving"]
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
graydon has quit ["xchat exiting.."]
skylan_ is now known as skylan
graydon has joined #ocaml
docelic has joined #ocaml
graydon has quit ["xchat exiting.."]
docelic has quit ["Client Exiting"]
graydon has joined #ocaml
taw has quit ["Client Exiting"]
j_bravo has quit [Read error: 104 (Connection reset by peer)]
graydon has quit ["xchat exiting.."]
graydon has joined #ocaml
jemfinch has joined #ocaml
lament has quit ["mental mantle"]
graydon has quit ["xchat exiting.."]
jemfinch has quit [Read error: 104 (Connection reset by peer)]
jemfinch has joined #ocaml
lament has joined #ocaml
jemfinch has quit [Read error: 104 (Connection reset by peer)]
jemfinch has joined #ocaml
skylan has quit [Read error: 54 (Connection reset by peer)]
skylan has joined #ocaml
skylan has quit ["Reconnecting"]
skylan has joined #ocaml
graydon has joined #ocaml
mattam has joined #ocaml
graydon has quit ["xchat exiting.."]
mmc has quit [Excess Flood]
mmc has joined #ocaml
lament has quit ["mental mantle"]
TachYon25 has joined #ocaml
mrvn_ has joined #ocaml
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
mrvn has quit [Read error: 110 (Connection timed out)]
jemfinch has quit [Read error: 110 (Connection timed out)]
asqui has quit [Connection timed out]
j_bravo has joined #ocaml
nkoza has quit [Read error: 104 (Connection reset by peer)]
MegaWatS has joined #ocaml
karryall has joined #ocaml
Yurik_ has joined #ocaml
<Yurik_> re
Yurik_ has quit [Read error: 54 (Connection reset by peer)]
Yurik_ has joined #ocaml
gl is now known as Il0v3m|x3dc4sE
Il0v3m|x3dc4sE is now known as gl
Yurik_ has quit [Read error: 104 (Connection reset by peer)]
Yurik has joined #ocaml
<Yurik> re
Yurik_ has joined #ocaml
Yurik_ has quit ["÷ÙÛÅÌ ÉÚ XChat"]
Yurik has quit [Read error: 104 (Connection reset by peer)]
docelic has joined #ocaml
docelic has quit ["Client Exiting"]
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
karryall has quit []
graydon has joined #ocaml
__mattam__ has joined #ocaml
mattam has quit [Read error: 54 (Connection reset by peer)]
jankr has left #ocaml []
Dalroth has joined #ocaml
gl has quit [Connection timed out]
docelic has joined #ocaml
lament has joined #ocaml
lament has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
docelic has quit [Read error: 54 (Connection reset by peer)]
lament has joined #ocaml
sfogarty has joined #ocaml
<sfogarty> Er. Hi. I'm being a bit of a dolt, and could use some help with ocamlc, if anyone's feeling eneraous
matkor has joined #ocaml
<MegaWatS> why don`t you simply ask your question`?
<MegaWatS> nobody here can read your mind, and with only "I need some help" we can`t deduce what your problem is
<sfogarty> well, yes. That would be logical. Twofold problem, actually. First, the way I currently have the files set up I have to change between the #use's and the open commands to go between compiling and interpeting the file. Is there a simpler way? and secondly... this main thing is confusing me greatly. A simple let main () = print_string "" ;; _ = main ();; doesn't seem to do anything
<MegaWatS> #use and #open?
<MegaWatS> you should only use those in interactive mode
<sfogarty> #use and open
<sfogarty> right
<sfogarty> #use in interactive, and open in the compiler, yes?
<MegaWatS> open is only for inserting the contents of a module in the current namespace
<MegaWatS> its a language construct
<sfogarty> hm. k.
<sfogarty> how do I source another file when compiling then?
<MegaWatS> ?
<MegaWatS> you mean compiling several files at once and linking them together?
<MegaWatS> simply pass them all to the compiler
<MegaWatS> ocamlc file1.ml file2.ml main.ml
<MegaWatS> or somesuch
<sfogarty> um. but that doesn't work if file2 relies on data defined in file1..?
<MegaWatS> yes it does
<MegaWatS> it doesnt work f it is the other way around
<sfogarty> ocamlc types.ml logic.ml
<sfogarty> File "logic.ml", line 38, characters 9-44:
<sfogarty> Unbound constructor Course
<sfogarty> but if I put open Types in logic.ml, it works.
<MegaWatS> yes of course
<MegaWatS> each file is a module to itself
<MegaWatS> you can use open otr
<MegaWatS> simply reference to the identifier with
<MegaWatS> Soandso.member
<sfogarty> Aaaahhh. So I'd have to use Types.Course. (slaps head)
<sfogarty> makes much more sense now
<sfogarty> K. That mystery solved. Now... main? cannot find it anywhere in the book or the manual. If a pointer is handy, that might be best
<MegaWatS> ?
<MegaWatS> main?
<sfogarty> heh. I was hoping that was the response. person I'm working with has been using let main () = <> and then let _ = main ();; to make the executables
<sfogarty> but I take it that isn't necessary.
<sfogarty> hm
<sfogarty> let me fiddle a bit
<MegaWatS> you simply have to evaluate an expression with the side-effects you want your program to have
<MegaWatS> e.g.
<sfogarty> hm
<MegaWatS> let _ = print_string "HELLO, WORLD!!! 8DDD"
<sfogarty> aaahh
<sfogarty> and, of course, it's a problem with my makefile. *sigh* I really should learn them proper
<MegaWatS> hehe
<MegaWatS> for such small projects I don´t even use make
sfogarty has quit [Remote closed the connection]
<MegaWatS> Im always too lazy to write a makefile
sfogarty has joined #ocaml
<sfogarty> ouch.
Dalroth has quit []
<sfogarty> that's much nicer than the silly main thing
__mattam__ has quit ["-> {~~~~}"]
mellum has quit [Read error: 110 (Connection timed out)]
mellum has joined #ocaml
MegaWatS has quit ["Don't you hate it when chicks get mad at you for staring at their asses? It's not my fault that they have stuff written there]