<Drakken>
How do you know whether or not input_line chopped a newline off the last line in the file?
<suze>
test if last character is \n ?
<Drakken>
the last character is never \n
<suze>
oh yeah, sorry
<suze>
what about testing if the line is empty ?
<suze>
(of course you could have several empty lines at the end on particular files)
<Drakken>
;)
<Drakken>
only the last line is ambiguous
<suze>
hmm i think i don't understand your question in fact
<Drakken>
input_line returns the last line in the file without a newline, regardless of whether or not there was one there in the first place.
<Drakken>
So it destroys information.
<Drakken>
(not much, of course :)
<suze>
how could you have a line with two newlines Drakken ?
<Drakken>
you don't
<suze>
ah
<suze>
i just understood, ok
<suze>
it's late :D
<thelema>
Drakken: assume the file ended in \n
kmicinsk1 has quit [Ping timeout: 252 seconds]
<Drakken>
thelema i.e make sure file-format rules are independent of terminal newlines
<Drakken>
I'm working on a line-based syntax for ocaml, so end-of-file will have to count as a newline.
<Drakken>
It's easier to String.concat the lines in a file without adding the terminal newline.
<Drakken>
after reading them in with read_line
<Drakken>
oop, I mean input_line
<Drakken>
oopS
yroeht has joined #ocaml
emmanuelux has quit [Ping timeout: 264 seconds]
foocraft has joined #ocaml
strlen_ is now known as strlen
bjorkintosh has quit [Ping timeout: 244 seconds]
Qrntz_ is now known as Qrntz
Qrntz has quit [Changing host]
Qrntz has joined #ocaml
Guest97824 has quit [Quit: leaving]
flux has joined #ocaml
nosuni has quit [Ping timeout: 244 seconds]
nosuni has joined #ocaml
zzz_` has joined #ocaml
fds has quit [Ping timeout: 272 seconds]
fds has joined #ocaml
zzz_ has quit [Read error: Connection reset by peer]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
fpz_ has joined #ocaml
fpz has quit [Read error: Connection reset by peer]
eni has joined #ocaml
pango is now known as pangoafk
eni has quit [Ping timeout: 260 seconds]
fpz_ has quit [Read error: Connection reset by peer]
fpz has joined #ocaml
Snark has joined #ocaml
solidus-river has joined #ocaml
<solidus-river>
whats the best ocaml tutorial out there?
Submarine has quit [Ping timeout: 245 seconds]
Yoric has joined #ocaml
eni has joined #ocaml
Reventlov has quit [Read error: Operation timed out]
Reventlov has joined #ocaml
pr_ has joined #ocaml
pr has quit [Read error: Connection reset by peer]
eni has quit [Client Quit]
djcoin has joined #ocaml
solidus-river has left #ocaml []
mika1 has joined #ocaml
cago has joined #ocaml
err404 has joined #ocaml
thomasga has joined #ocaml
Sablier has joined #ocaml
emias has quit [Quit: Changing server]
emias has joined #ocaml
ocp has joined #ocaml
<rwmjones>
caml.inria.fr down for everyone today?
<djcoin>
rwmjones: seems down to me indeed (France)
<Ptival>
oh... the machine is down
<Ptival>
will be back up soon
err404 has quit [Quit: Ex-Chat]
cdidd has joined #ocaml
<Ptival>
up
snearch has joined #ocaml
<rwmjones>
thanks
eikke has joined #ocaml
snearch has quit [Quit: Verlassend]
foocraft has quit [Ping timeout: 244 seconds]
foocraft has joined #ocaml
Hussaind has joined #ocaml
Hussaind has quit [Read error: Connection reset by peer]
Hussaind has joined #ocaml
Hussaind has left #ocaml []
kaustuv has joined #ocaml
dca has joined #ocaml
Yoric has quit [Ping timeout: 248 seconds]
err404 has joined #ocaml
Yoric has joined #ocaml
oriba has joined #ocaml
jamii has joined #ocaml
<mehdid>
why the hell my browser thinks gimp is a good choice to read pdf files?
ski___ is now known as ski
jonafan has quit [Ping timeout: 244 seconds]
jonafan has joined #ocaml
foocraft has quit [Ping timeout: 252 seconds]
foocraft has joined #ocaml
mnabil has joined #ocaml
_andre has joined #ocaml
<adrien>
mehdid: firefox?
<mehdid>
chromium
<mehdid>
it seems that I have to set XDG_DATA_DIR to something sensible to make it work better
<mehdid>
(it was a EWIN initially :) sorry for the noise)
<adrien>
:-)
emmanuelux has joined #ocaml
orbitz_ has quit [Quit: Reconnecting]
orbitz has joined #ocaml
err404 has quit [Remote host closed the connection]
_andre has quit [Quit: leaving]
_andre has joined #ocaml
<jaxtr>
ahh it's a wonderful day
<Hodapp>
IT'S STILL DARK HERE YOU INSENSITIVE CLOD
<adrien>
antarctica?
yezariaely has joined #ocaml
yezariaely has left #ocaml []
smondet has joined #ocaml
lamawithonel_ has quit [Ping timeout: 252 seconds]
oriba has quit [Quit: oriba]
bitbckt has quit [Quit: out]
bitbckt has joined #ocaml
bitbckt has quit [Changing host]
bitbckt has joined #ocaml
Sablier has quit [Read error: Connection reset by peer]
mika1 has quit [Quit: Leaving.]
cago has quit [Quit: Leaving.]
ocp has quit [Ping timeout: 265 seconds]
everyonemines has joined #ocaml
smerz has joined #ocaml
Yoric has quit [Ping timeout: 244 seconds]
kolera has joined #ocaml
kolera has quit [Read error: Connection reset by peer]
kolera has joined #ocaml
Sablier has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.2]
kolera has quit [Quit: Ex-Chat]
kolera has joined #ocaml
Submarine has joined #ocaml
Yoric has joined #ocaml
bjorkintosh has joined #ocaml
kolera has quit [Remote host closed the connection]
pangoafk is now known as pango
kolera has joined #ocaml
bjorkintosh has quit [Remote host closed the connection]
Anarchos has joined #ocaml
bjorkintosh has joined #ocaml
Anarchos has quit [Ping timeout: 256 seconds]
kolera has quit [Quit: Ex-Chat]
kolera has joined #ocaml
kolera has left #ocaml []
kolera has joined #ocaml
kolera has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
BiDOrD has joined #ocaml
thomasga has quit [Quit: Leaving.]
BiDOrD_ has quit [Ping timeout: 252 seconds]
ski has quit [Read error: Connection reset by peer]
mnabil has quit [Remote host closed the connection]
jamii has quit [Read error: Operation timed out]
kolera has joined #ocaml
Snark has quit [Quit: Quitte]
yezariaely has joined #ocaml
Yoric has quit [Ping timeout: 245 seconds]
lamawithonel_ has joined #ocaml
Kakadu has joined #ocaml
Kakadu has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
Anarchos has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
snearch has joined #ocaml
err404 has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
foocraft has quit [Quit: .]
fraggle_ has joined #ocaml
ocp has joined #ocaml
Yoric has joined #ocaml
_andre has quit [Quit: leaving]
Submarine has quit [Quit: Leaving]
lamawithonel_ has quit []
lamawithonel has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
snearch has quit [Quit: Verlassend]
ocp has quit [Read error: Operation timed out]
kolera has left #ocaml []
Yoric has quit [Ping timeout: 244 seconds]
<jonafan>
how do you do ocsigen
err404 has quit [Quit: Ex-Chat]
<jonafan>
never mind, i got it
smondet has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
everyonemines has quit [Quit: Leaving.]
jamii has joined #ocaml
lamawithonel has quit []
lamawithonel has joined #ocaml
fubada has joined #ocaml
<fubada>
hi, is there a rpm for 3.12
<fubada>
i found one, but it doesnt provide findlibs
<Qrntz>
findlib is a separate package in all of the distributions I know
<NaCl>
what Qrntz said
<fubada>
not in centos6, epel,
johnnowak has joined #ocaml
<johnnowak>
hello all. does anyone know if it is possible to get 'ocaml' to print the entirety of a large value in the repl? it has annoying habit of putting in "..." whenever i want to see something