Camarade_Tux has quit [Read error: 110 (Connection timed out)]
jeanb-- has joined #ocaml
ttamttam has left #ocaml []
jeanbon has quit [Read error: 110 (Connection timed out)]
jeanb-- is now known as chickenzilla
maskd has quit [Read error: 113 (No route to host)]
psnively has joined #ocaml
<kmkaplan>
Documentation for Random.int looks bogus.
psnively has left #ocaml []
jlouis has joined #ocaml
Snark has quit ["Ex-Chat"]
ched__ has quit [Remote closed the connection]
seafood has joined #ocaml
Ched has joined #ocaml
<Yoric[DT]>
kmkaplan: any suggestion?
<kmkaplan>
Yoric[DT]: Oh man... In my browser the "^30" is nearly invisible.
<kmkaplan>
So I just read: "bound must be greater than 0 and less than 2."
<Yoric[DT]>
Indeed.
* Yoric[DT]
will take a look at the css.
<kmkaplan>
Cool.
<Yoric[DT]>
Ah, I see that we've already done something to fix this in Batteries.
schme has joined #ocaml
<Yoric[DT]>
Superscript font is 8pt in Batteries' doc, instead of 4pt in original doc.
<Yoric[DT]>
Should make things readable.
<Yoric[DT]>
mrvn: what's libmojave?
<kmkaplan>
Yoric[DT]: ah right. In the batteries doc it is indeed easily readable.
marmottine has quit ["mv marmotine Laurie"]
<mfp>
Yoric[DT]: libmojave seems to be yet another stdlib, used internally in OMake
<Yoric[DT]>
ok
m1chi has quit ["Chatzilla 0.9.75.1 [SeaMonkey 1.1.13/0000000000]"]
* Yoric[DT]
will need to take a deeper look one of these days.
jlouis has quit ["lamergamery"]
xahlee has joined #ocaml
<xahlee>
when i use a var in a pattern, like “x”, does ocaml actually compile it to “_ as x”
<xahlee>
what am trying to say, is that if a var in pattern is just a sugar syntax?
<mrvn>
I believe _ as x getscompiled to x
<xahlee>
humm.
<mrvn>
_ is just a special x that gets thrown away by the way.
<xahlee>
ic.
<mrvn>
let _ = 1 + 1
<mrvn>
not match specific.
* mrvn
hates circular dependencies.
<mrvn>
I really wish ocaml would allow foo.ml to depend on bla.mli and bla.ml to depend on foo.mli.
<xahlee>
mli is compiled ml?
<mrvn>
mli is the public interface for a module
<Yoric[DT]>
mrvn: yeah.
<xahlee>
humm. ok. Lots learning to do yet here.
<Yoric[DT]>
That's where we need loooots of rewriting in Batteries.
<mrvn>
xahlee: If you don't have an .mli file then everything in the .ml file is public. If you want to hide parts of it then you need to write an .mli file that skips those parts. You can create an .mli file by running 'ocamlc -i foo.ml >foo.mli' and then alter it.
<xahlee>
ic. interesting.
<xahlee>
i learned that name patterns cannot repeat. What would be a normal way to do this:
<xahlee>
let d = (3, 3, 4) in match d with ( a, a, c ) -> (a, c);;
<mrvn>
xahlee: bad form. a shadows a
<mrvn>
(a, b, c) when a = b
<xahlee>
ah ok.
<mrvn>
Strictly speaking would one have to add the GPL preamble and copyright info to every patch one sends out?