mfurr changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
m3ga has joined #ocaml
zzorn_sleep has quit ["They are coming to take me away, ha ha"]
m3ga has quit ["Client exiting"]
CosmicRay has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
smimou has quit ["?"]
xol has quit [Read error: 110 (Connection timed out)]
tintin has joined #ocaml
gim has quit [Remote closed the connection]
smkl_ has quit [Read error: 110 (Connection timed out)]
chip has left #ocaml []
dross has quit [Remote closed the connection]
cjohnson has quit ["dreams of pi"]
kinners has joined #ocaml
smkl_ has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
drewr has joined #ocaml
CosmicRay has quit ["Leaving"]
kinners has joined #ocaml
Amorphous has quit [Client Quit]
Amorphous has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
monochrom has quit ["Few people understand "understanding"."]
smkl_ has quit [Read error: 110 (Connection timed out)]
Gahhh has joined #ocaml
Submarine has joined #ocaml
smkl_ has joined #ocaml
humasect has joined #ocaml
mlh has quit [Client Quit]
xqw has quit [Read error: 113 (No route to host)]
Submarine has quit ["Leaving"]
mlh has joined #ocaml
humasect has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
pango has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
smkl_ has joined #ocaml
vezenchio has joined #ocaml
tintin has quit [Read error: 110 (Connection timed out)]
smkl_ has quit [Read error: 60 (Operation timed out)]
tintin has joined #ocaml
tintin has quit ["ERC Version 5.0 $Revision: 1.735 $ (IRC client for Emacs)"]
mlh has quit [tolkien.freenode.net irc.freenode.net]
_shawn has quit [tolkien.freenode.net irc.freenode.net]
drewr has quit [tolkien.freenode.net irc.freenode.net]
mbh has quit [tolkien.freenode.net irc.freenode.net]
haakonn__ has quit [tolkien.freenode.net irc.freenode.net]
Smerdyakov has quit [tolkien.freenode.net irc.freenode.net]
pnou has quit [tolkien.freenode.net irc.freenode.net]
oracle1 has quit [tolkien.freenode.net irc.freenode.net]
dan2 has quit [tolkien.freenode.net irc.freenode.net]
cmeme has quit [tolkien.freenode.net irc.freenode.net]
Hipo has quit [tolkien.freenode.net irc.freenode.net]
skylan has quit [tolkien.freenode.net irc.freenode.net]
_fab has quit [tolkien.freenode.net irc.freenode.net]
Gahhh has quit [tolkien.freenode.net irc.freenode.net]
noj has quit [tolkien.freenode.net irc.freenode.net]
calvin_ has quit [tolkien.freenode.net irc.freenode.net]
mrvn_ has quit [tolkien.freenode.net irc.freenode.net]
avn has quit [tolkien.freenode.net irc.freenode.net]
Hadaka has quit [tolkien.freenode.net irc.freenode.net]
vezenchio has quit [tolkien.freenode.net irc.freenode.net]
tintin has joined #ocaml
vezenchio has joined #ocaml
mlh has joined #ocaml
Gahhh has joined #ocaml
drewr has joined #ocaml
mrvn_ has joined #ocaml
_shawn has joined #ocaml
mbh has joined #ocaml
_fab has joined #ocaml
haakonn__ has joined #ocaml
Smerdyakov has joined #ocaml
oracle1 has joined #ocaml
dan2 has joined #ocaml
cmeme has joined #ocaml
skylan has joined #ocaml
Hipo has joined #ocaml
pnou has joined #ocaml
Hadaka has joined #ocaml
avn has joined #ocaml
noj has joined #ocaml
calvin_ has joined #ocaml
Submarine has joined #ocaml
stef has quit [Nick collision from services.]
stef_ has joined #ocaml
kuribas has joined #ocaml
smkl_ has joined #ocaml
Submarine has quit [Remote closed the connection]
smimou has joined #ocaml
mlh has quit ["Chatzilla 0.9.66e [Firefox 1.0/20041107]"]
gim has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Submarine has joined #ocaml
_JusSx_ has joined #ocaml
ganjalink has joined #ocaml
<ganjalink> hello
smkl_ has joined #ocaml
Demitar has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]
kuribas has quit ["Leaving"]
zzorn has joined #ocaml
smkl_ has quit [Read error: 60 (Operation timed out)]
CosmicRay has joined #ocaml
zzorn has quit ["They are coming to take me away, ha ha"]
zzorn has joined #ocaml
smkl_ has joined #ocaml
zzorn has quit [No route to host]
mrvn_ is now known as mrvn
mrvn_ has joined #ocaml
shawn has joined #ocaml
Demitar has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
smkl_ has quit [Read error: 110 (Connection timed out)]
cmeme has quit [Connection timed out]
_shawn has quit [Client Quit]
senko has quit ["Leaving"]
Submarine has quit [Connection timed out]
Axioplase has joined #ocaml
<Axioplase> Chat lut!
<Axioplase> wondering hwo to use Arg.parse. I jsut want my prog to use a default value or to use one given on the command line (as an anonymous argument)
<Axioplase> Arg.parse [] (function x -> let fichier0 = ref x) "passez un nom de fichier pour le typer. exemple.mml par défaut.";;
<Axioplase> argh. well, anyway, you see that I use a ref to store the argument, so that afterwards i can check if that ref is empty, in which case i give it the default value.
<Axioplase> but the str->unit function I gave to parse seems not to be enjoyed by Ocaml.
<mrvn_> Axioplase: let fichier0 creates a local binding and you are missing its use (in ....)
<mrvn_> And, by the way, it would help if one could understand the error message.
<Axioplase> ho. so, if i declare that ref outside (and above) the function, that anonymous function would still use the right ref? that sounds quite great.
<mrvn_> let fichier0 = ref None
<mrvn_> Arg.parse [] (function x -> fichier0 <- Some x)
<mrvn_> or is it :=?
<Axioplase> :=
<mrvn_> I always confuse the two.
<Axioplase> I jsut use <- with arrays afair
<pango> and mutables
<Axioplase> indeed.
<pango> type 'a ref = { mutable contents: 'a }
<pango> x := 3 <==> x.contents <- 3
<Axioplase> yes. that is.
zzorn has joined #ocaml
smkl_ has joined #ocaml
monochrom has joined #ocaml
ganjalink has quit [Nick collision from services.]
ganjalink has joined #ocaml
Axioplase has quit [Remote closed the connection]
mattam has joined #ocaml
mattam has quit ["leaving"]
mattam has joined #ocaml
_JusSx__ has joined #ocaml
_JusSx_ has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
smkl_ has quit [Read error: 60 (Operation timed out)]
pango has quit ["brb"]
pango has joined #ocaml
smkl_ has joined #ocaml
<ganjalink> ++
ganjalink has quit ["Quit rulez !"]
mlh has joined #ocaml
CosmicRay has quit ["Client exiting"]
smkl_ has quit [Read error: 110 (Connection timed out)]
smkl_ has joined #ocaml
xqw has joined #ocaml
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specif]