mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
piggybox_ has joined #ocaml
Mr_Awesome has joined #ocaml
piggybox has quit [Read error: 110 (Connection timed out)]
G_ has joined #ocaml
schme has joined #ocaml
G has quit [Connection timed out]
schme` has quit [Connection timed out]
seafoodX has joined #ocaml
seafoodX has quit []
seafoodX has joined #ocaml
seafood has quit ["leaving"]
sseefried has joined #ocaml
Smerdyakov has quit ["Leaving"]
seafoodX has quit []
seafoodX has joined #ocaml
sseefried has quit [Remote closed the connection]
<mbishop> I have 3 files, password.ml main.ml and password.mli, I do ocamlc password.mli, ocamlc -c password.ml, ocamlc -c -I +lablgtk2 etc main.ml, then I do ocamlc password.cmo main.cmo -o password and I get
<mbishop> Error while linking main.cmo: Reference to undefined global `GWindow'
<tsuyoshi> you need the lablgtk2 in the link command too
<mbishop> I tried that, still errored
ramkrsna_ is now known as ramkrsna
<mbishop> what should gtkInit be when using ocamlc, cmo?
<tsuyoshi> cma I thought
<tsuyoshi> but one of those two, yeah
<mbishop> neither works
<mbishop> Cannot find file gtkInit.cma
<mbishop> and with cmo it gives the same error as before
slipstream has quit [Read error: 113 (No route to host)]
<mbishop> hmm
<mbishop> just used ocamlopt instead, it builds, but now it doesn't seem to work heh
<mbishop> running the binary does nothing
<mbishop> scratch that, I got it
<mbishop> thanks
G_ has quit [Read error: 110 (Connection timed out)]
tsuyoshi has quit [Remote closed the connection]
tsuyoshi has joined #ocaml
tsuyoshi has quit [Client Quit]
SquirtGodel has joined #ocaml
G has joined #ocaml
ednarofi has joined #ocaml
SquirtGodel has left #ocaml []
G_ has joined #ocaml
G has quit [Connection timed out]
G_ is now known as G
slipstream has joined #ocaml
cpst has joined #ocaml
dmentre has joined #ocaml
piggybox__ has joined #ocaml
slipstream-- has joined #ocaml
piggybox_ has quit [Read error: 110 (Connection timed out)]
slipstream has quit [Read error: 110 (Connection timed out)]
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
Mr_Awesome is now known as Mr_Douchebag
seafoodX has quit []
l_a_m has joined #ocaml
seafoodX has joined #ocaml
Mr_Douchebag has quit ["time to impregnate a moth"]
authentic has quit [Read error: 110 (Connection timed out)]
seafoodX_ has joined #ocaml
seafoodX has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
_blackdog has left #ocaml []
m3ga has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
piggybox__ has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
_blackdog has left #ocaml []
Demitar has quit [Read error: 113 (No route to host)]
cpst has quit [Read error: 110 (Connection timed out)]
piggybox has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
_blackdog has left #ocaml []
SquirtGodel has joined #ocaml
SquirtGodel has left #ocaml []
Cygal has joined #ocaml
seafoodX_ has quit []
_blackdog has joined #ocaml
_blackdog has left #ocaml []
Smerdyakov has joined #ocaml
DaBookshah has joined #ocaml
<DaBookshah> Hey all
<DaBookshah> Is it ok if I ask a question about ocamllex here?
<Smerdyakov> Yes.
<DaBookshah> Stupid Question: How do I specify a case-insensitive match?
<DaBookshah> say, I want to match "EAX", "eaX", etc
<Smerdyakov> Use a regular expression. I don't expect there's a single construct for case insensitivity, but, for just three letters, it's still quite short.
<DaBookshah> ok. Was hoping there would be something slightly more efficient, but anyway....
<Smerdyakov> You can also have a rule to match any sequence of characters and do the discrimination in the OCaml action.
<Smerdyakov> I meant any sequence of letters; in general, a broader class than you really want.
<Smerdyakov> Traditional lexers tend to be the wrong places to imlpement anything halfway complicated.
<DaBookshah> Ok. Thanks
DaBookshah has left #ocaml []
pango has quit [Remote closed the connection]
seafoodX has joined #ocaml
pango has joined #ocaml
magicjm has quit ["Leaving."]
G has quit [Read error: 110 (Connection timed out)]
crathman has joined #ocaml
Demitar has joined #ocaml
dmentre has quit ["Leaving."]
seafood has joined #ocaml
bebui_ has joined #ocaml
bebui has quit [Read error: 104 (Connection reset by peer)]
seafoodX has quit []
crathman_ has joined #ocaml
authentic has joined #ocaml
Cygal has quit [Read error: 110 (Connection timed out)]
crathman has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
_blackdog has left #ocaml []
cpst has joined #ocaml
ednarofi has quit [Read error: 104 (Connection reset by peer)]
crathman_ has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.6/2007072518]"]
ednarofi has joined #ocaml
pantsd has quit [Remote closed the connection]
Submarine has joined #ocaml
piggybox has quit [Read error: 110 (Connection timed out)]
lde has joined #ocaml
Mr_Awesome has joined #ocaml
ednarofi has quit [Read error: 110 (Connection timed out)]
ednarofi has joined #ocaml
piggybox has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
pango has quit [Remote closed the connection]
Flice has joined #ocaml
<Flice> hi
<Flice> is there a way to "dereference" an invariant, besides pattern-matching it?
pango has joined #ocaml
<Flice> say, I have "type foo = Foo of int" and a function that gets parameter f:Foo. is there a way to get the int value out of f?
<pango> sure, thru pattern matching
<Flice> [00:15:08] <Flice> is there a way to "dereference" an invariant, besides pattern-matching it?
<Flice> that was just before you came in :)
<pango> no, that's what pattern matching does
<pango> deconstruct values
<Flice> is there a shorter way of pattern matching for such purposes?
<pango> there's no other, so there's no shorter one either
<Flice> ok, thanks
<pango> # let myfunction = function Foo i -> i ;;
<pango> # myfunction (Foo 3) ;;
<pango> - : int = 3
<Flice> yep, was aware of that, but thanks again
<pango> or even # let myfunction (Foo i) = i ;;
<Flice> hmm. this one looks interesting :)
<Flice> cool, just what I was looking for. thanks again :)
<pango> np
<pango> let features pattern matching, that's how stuff like let (a, b) = (3, "blah") work
Submarine has quit [Remote closed the connection]
ednarofi has quit [Read error: 104 (Connection reset by peer)]
ednarofi has joined #ocaml
Submarine has joined #ocaml
G has joined #ocaml
shawn` has joined #ocaml
ednarofi has quit [Read error: 110 (Connection timed out)]
tty56 has joined #ocaml
l_a_m has quit [Remote closed the connection]
tty56_ has quit [Read error: 110 (Connection timed out)]