gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml Meeting 2011 http://bit.ly/eaZi1C | OCaml 3.12.0 http://bit.ly/aNZBUp
enthymeme has joined #ocaml
arubin has joined #ocaml
boscop has joined #ocaml
ecc has quit [Ping timeout: 252 seconds]
ecc has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
joewilliams is now known as joewilliams_away
mfp has joined #ocaml
Modius has quit [Quit: "Object-oriented design" is an oxymoron]
lopex has quit []
Associat0r has joined #ocaml
enthymeme has quit [Ping timeout: 258 seconds]
enthymeme has joined #ocaml
ymasory has quit [Quit: Leaving]
dnolen has quit [Quit: dnolen]
ulfdoz has joined #ocaml
vivanov has quit [Ping timeout: 258 seconds]
arubin has quit [Quit: arubin]
enthymeme has quit [Quit: brb]
vivanov has joined #ocaml
Modius has joined #ocaml
vivanov has quit [Quit: Lost terminal]
ikaros has joined #ocaml
vivanov has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
Yoric has joined #ocaml
mcclurmc has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
Derander has quit [Read error: Operation timed out]
ftrvxmtrx has quit [Quit: Leaving]
Rickasaurus has quit [Read error: Connection reset by peer]
Snark has joined #ocaml
philtor has quit [Ping timeout: 258 seconds]
Yoric has quit [Quit: Yoric]
Yoric has joined #ocaml
Yoric has quit [Client Quit]
ikaros has quit [Quit: Leave the magic to Houdini]
Cyanure has joined #ocaml
ftrvxmtrx has joined #ocaml
lamawithonel has quit [Ping timeout: 246 seconds]
lamawithonel has joined #ocaml
Cyanure has quit [Remote host closed the connection]
eikke has joined #ocaml
Yoric has joined #ocaml
lamawithonel_ has joined #ocaml
lamawithonel has quit [Ping timeout: 276 seconds]
arquebus has joined #ocaml
<arquebus> #sml
Associat0r has quit [Quit: Associat0r]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Cyanure has joined #ocaml
arquebus has left #ocaml []
pdhborges has joined #ocaml
jamii has joined #ocaml
myzt has joined #ocaml
myzt has quit [Client Quit]
pdhborges has quit [Ping timeout: 240 seconds]
lamawithonel_ has quit [Ping timeout: 248 seconds]
lamawithonel_ has joined #ocaml
jderque has joined #ocaml
lopex has joined #ocaml
thomasga has joined #ocaml
larhat has joined #ocaml
eaburns has joined #ocaml
lamawithonel_ has quit [Ping timeout: 260 seconds]
lamawithonel_ has joined #ocaml
avsm has quit [Quit: Leaving.]
eaburns has left #ocaml []
avsm has joined #ocaml
pdhborges has joined #ocaml
_andre has joined #ocaml
edwin has joined #ocaml
<pdhborges> guys I hate to do this but were the hell is the syntax error in this code
<pdhborges> i works on the repl!
<f[x]> run with -pp camlp4o
ikaros has joined #ocaml
<f[x]> 'let .. in' is not valid at top level
<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]
Amorphous has quit [Ping timeout: 246 seconds]
dnolen has joined #ocaml
joewilliams is now known as joewilliams_away
Derander has joined #ocaml
Amorphous has joined #ocaml
ymasory has joined #ocaml
dnolen has quit [Ping timeout: 246 seconds]
ymasory has quit [Quit: Leaving]
ymasory has joined #ocaml
smerz has quit [Quit: Ex-Chat]
dnolen has joined #ocaml
lopexx has joined #ocaml
lopex has quit [Ping timeout: 260 seconds]