<rproust>
pdhborges: try putting "let _ =" before line 16
<f[x]>
better let () =
<rproust>
also num_cases seems only partially applied to me (but I'm not sure as I didn't check the scanf module)
<pdhborges>
rproust: it's not partially aplied
<flux>
rproust, a rule: a file consists of sections, which are separated by ;;. each seaction may consist either of exactly one expression or any number of statements. let x = b in c is an expression, let a = 42 is a statement.
<flux>
rproust, and this same rule goes for the toplevel as well
<pdhborges>
f[x]: thanks alot man I allways forget thet stuff
BiDOrD has quit [Quit: No Ping reply in 180 seconds.]
BiDOrD has joined #ocaml
<pdhborges>
why is () recommended over _?
<rproust>
pdhborges: it enforce the type of the expression on the right habd side of the =
<rproust>
you could do "let _ = List.iter print_int" (forgettinh the second argument) but you couldn't do "let () = List.iter print_int"
<rproust>
the latter wouldn't type check
<pdhborges>
a
<pdhborges>
good point
<rproust>
If you are interested in the side effect of the evaluation of an expression of type [t] you can use "let (_ : t) =…"
<flux>
interesting
<flux>
let a : int = 42 compiles
<flux>
let _ : int = 42 doesn't
<mrvn>
let _a : int = 42;;
<rproust>
flet (_ : int) = 42 works
dnolen has joined #ocaml
pdhborges has quit [Ping timeout: 240 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
ecc has quit [Ping timeout: 260 seconds]
doknokem has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 246 seconds]
doknokem has quit [Ping timeout: 252 seconds]
myu2 has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
BiDOrD has quit [Quit: No Ping reply in 180 seconds.]
BiDOrD has joined #ocaml
lamawithonel_ has quit [Ping timeout: 246 seconds]
lamawithonel_ has joined #ocaml
boscop_ has quit [Ping timeout: 246 seconds]
boscop_ has joined #ocaml
pdhborges has joined #ocaml
pdhborges has quit [Client Quit]
boscop_ has quit [Ping timeout: 240 seconds]
pdhborges has joined #ocaml
Cyanure has quit [Remote host closed the connection]
<pdhborges>
/buffer 4
jamii has quit [Ping timeout: 276 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
pdhborges has quit [Quit: WeeChat 0.3.4]
Associat0r has joined #ocaml
ikaros has joined #ocaml
Associat0r has quit [Ping timeout: 246 seconds]
Associat0r has joined #ocaml
jderque has left #ocaml []
joewilliams_away is now known as joewilliams
lopex has quit []
dnolen has quit [Remote host closed the connection]
DimitryKakadu has joined #ocaml
boscop has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
Yoric_ has joined #ocaml
boscop_ has quit [Ping timeout: 240 seconds]
Yoric has quit [Ping timeout: 248 seconds]
Yoric_ is now known as Yoric
lamawithonel_ has quit [Ping timeout: 248 seconds]
lamawithonel_ has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
eikke has quit [Ping timeout: 258 seconds]
lopex has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ymasory has joined #ocaml
Yoric has quit [Quit: Yoric]
eikke has joined #ocaml
ecc has joined #ocaml
sepp2k has joined #ocaml
rien has quit [Ping timeout: 252 seconds]
rien has joined #ocaml
myu2 has quit [Remote host closed the connection]
jamii has joined #ocaml
avsm has quit [Quit: Leaving.]
ftrvxmtrx has joined #ocaml
BiDOrD has quit [Quit: No Ping reply in 180 seconds.]
BiDOrD has joined #ocaml
pdhborges has joined #ocaml
enthymeme has joined #ocaml
thomasga has quit [Quit: Leaving.]
Yoric has joined #ocaml
larhat has quit [Quit: Leaving.]
srcerer has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.16/20110319135224]]
boscop has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
boscop has joined #ocaml
vivanov has quit [Quit: Lost terminal]
Snark has quit [Quit: Ex-Chat]
boscop has quit [Ping timeout: 246 seconds]
boscop has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
boscop has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
boscop has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ymasory has quit [Quit: Leaving]
boscop has quit [Ping timeout: 250 seconds]
boscop has joined #ocaml
srcerer has joined #ocaml
boscop has quit [Ping timeout: 246 seconds]
pdhborges has quit [Quit: WeeChat 0.3.4]
jderque has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
ymasory has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
philtor has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
Cyanure has joined #ocaml
boscop has joined #ocaml
smerz has joined #ocaml
DimitryKakadu has quit [Remote host closed the connection]
chambart has quit [Ping timeout: 252 seconds]
chambart has joined #ocaml
ymasory has quit [Ping timeout: 264 seconds]
_andre has quit [Quit: leaving]
ulfdoz has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ftrvxmtrx has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
dnolen has joined #ocaml
rien has left #ocaml []
jamii has quit [Ping timeout: 250 seconds]
avsm has joined #ocaml
hnrgrgr has joined #ocaml
edwin has quit [Remote host closed the connection]
jonafan has quit [Read error: Connection reset by peer]
hyperbor1ean has joined #ocaml
BiDOrD_ has joined #ocaml
hyperboreean has quit [Ping timeout: 246 seconds]
ezrakilty has joined #ocaml
ecooper has quit [Ping timeout: 246 seconds]
BiDOrD has quit [Ping timeout: 246 seconds]
jderque has quit [Quit: leaving]
Cyanure has quit [Remote host closed the connection]
dnolen has quit [Quit: dnolen]
eikke has quit [Ping timeout: 276 seconds]
hnrgrgr has quit [Quit: leaving]
eikke has joined #ocaml
mal`` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mal`` has joined #ocaml
lamawithonel_ has quit [Remote host closed the connection]