CosmicRay has quit [Read error: 104 (Connection reset by peer)]
esdee has quit ["Leaving"]
Mr_Awesome has joined #ocaml
david_koontz has quit ["This computer has gone to sleep"]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 104 (Connection reset by peer)]
love-pingoo has quit ["Connection reset by pear"]
zarvok has quit ["BitchX-1.1-final -- just do it."]
yminsky has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
seafoodX has joined #ocaml
CosmicRay_ has quit ["Client exiting"]
seafoodX has quit []
seafoodX has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
slipstream has joined #ocaml
Smerdyakov has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
david_koontz has joined #ocaml
Smerdyakov has quit [Remote closed the connection]
cmeme has quit ["Client terminated by server"]
cmeme has joined #ocaml
cmeme has quit []
cmeme has joined #ocaml
cmeme has quit ["Client terminated by server"]
cmeme has joined #ocaml
qwwqe has joined #ocaml
yminsky_ has joined #ocaml
yminsky has quit [Read error: 104 (Connection reset by peer)]
qwwqe has quit [Read error: 110 (Connection timed out)]
ramkrsna_ is now known as ramkrsna
shawn has joined #ocaml
<gaja>
Is there any reason why the line "let x = 1 in x + 2" should work in the interpreter but not when compiling? http://ocaml.pastebin.com/m2bb45392 I get a syntax error on line 13 here. (Yes I am just playing around)
seafoodX has quit []
Mr_Awesome has quit ["time to impregnate a moth"]
kelaouchi has quit [Read error: 110 (Connection timed out)]
seafoodX has joined #ocaml
beterraba has quit ["Saindo"]
seafoodX has quit [Remote closed the connection]
seafoodX has joined #ocaml
<flux>
infact, I don't think it works even in the interpreter - if you omit the ;;'s (except the last one)
<gaja>
flux: Let me try it again.
<flux>
I think it goes like this (but I haven't been able to confirm this idea by reading the documentation -pointers apprecited!) - each translation unit consists of either an expression or a list of top-level-statements
<flux>
translation units (maybe quite a bad term) must be separated with ;;
<flux>
so the three first things in your code are top-level-statements
<flux>
and then follows an expression, which is a no-no
<flux>
you can replace it with: let _ = let x = ...
<flux>
and the last line of code won't work
<flux>
you probably want to say: let _ = let fivers = .. in List.map ..(or List.iter, rather)
<flux>
or you can replace the ; with a ;;
<flux>
I personally prefer to write my programs without such tokens, as a list of top-level statements
<gaja>
Hmm.. Yeah you were right, syntax error.
<gaja>
The _ thing worked as expected. And ahh List.iter it is.
<gaja>
Thanks for the help flux.
screwt8 has quit [Read error: 104 (Connection reset by peer)]
thesoko has quit [Remote closed the connection]
ygrek has joined #ocaml
thesoko has joined #ocaml
xavierbot has joined #ocaml
love-pingoo has joined #ocaml
kelaouchi has joined #ocaml
ygrek has quit [Remote closed the connection]
seafoodX has quit []
ygrek has joined #ocaml
USACE1 has joined #ocaml
USACE has quit [Read error: 110 (Connection timed out)]
seafoodX has joined #ocaml
shawn has quit [Remote closed the connection]
mellum has joined #ocaml
<mellum>
Hi. Is there a way to get a time stamp without using Unix.*?
<rwmjones>
mellum, what's wrong with using Unix?
lde has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
pango has joined #ocaml
USACE1 has quit [Read error: 104 (Connection reset by peer)]
USACE has joined #ocaml
<mellum>
rwmjones: It's not available on non-Unix
<mellum>
or is it?
<rwmjones>
mellum, on windows parts of the Unix module are emulated
<mellum>
Oh. Well, then I guess I could just use it...
<mellum>
Hmm, except that Unix.times is not implemented... sigh.
bluestorm has joined #ocaml
love-pingoo has quit [Read error: 113 (No route to host)]
yminsky has joined #ocaml
yminsky_ has quit [Read error: 104 (Connection reset by peer)]
bluestorm has quit ["Konversation terminated!"]
piggybox has quit [Read error: 110 (Connection timed out)]
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
love-pingoo has joined #ocaml
USACE has quit [Read error: 104 (Connection reset by peer)]
USACE has joined #ocaml
slipstream has joined #ocaml
seafoodX has quit []
USACE1 has joined #ocaml
seafoodX has joined #ocaml
piggybox has joined #ocaml
Smerdyakov has joined #ocaml
USACE_ has joined #ocaml
USACE has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
pango has joined #ocaml
seafoodX has quit []
USACE1 has quit [Success]
pantsd has quit ["Leaving."]
yminsky has quit [Read error: 110 (Connection timed out)]
robyonrails has joined #ocaml
dash has left #ocaml []
pango has quit [Remote closed the connection]
pango has joined #ocaml
asmanur has joined #ocaml
<asmanur>
Hi
<asmanur>
I have a little problem :s
<asmanur>
I have two modules : X and Y, X uses functions from Y, and Y uses functions from X.
<asmanur>
How can I link these modules ? :(
<rwmjones>
asmanur, you can't ... so
<rwmjones>
put all the shared symbols into a module (eg. Z) and link X -> Z and Y -> Z
<asmanur>
hum
<rwmjones>
well, another way is to use recursive modules, but they are marked as an experimental compiler feature
<asmanur>
okay i'll try this way
<rwmjones>
& in any case you can't split recursive modules across files