smimou changed the topic of #ocaml to: OCaml 3.08.3 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/
smimou has quit ["?"]
humasect has quit ["Leaving.."]
vezenchio has quit [""Under democracy one party always devotes its chief energies to trying to prove that the other party is unfit to rule—and bot]
CosmicRay has joined #ocaml
CosmicRay has left #ocaml []
vivek has joined #ocaml
vivek is now known as tintin
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 60 (Operation timed out)]
cjohnson is now known as cj|sleep
__DL__ has joined #ocaml
eviltoylet has joined #ocaml
<eviltoylet> i'm trying to write a pattern match, but it seems to be telling me that one match case is unused. the case that it refers to is one right below a match i'm trying to do with a variable. can anyone help?
__DL__ has quit [Remote closed the connection]
__DL__ has joined #ocaml
Sonarman has joined #ocaml
<eviltoylet> in other words .. if i have a function called numberOne that takes 'a and returns 'a ... and i want to match numberOne var with var -> [] | x -> ["yay"];;
<eviltoylet> it tells me that the case x -> ["yay"] will be unused... i'm thinking its not matching with the value in 'var' .. can anyone help?
Snark has joined #ocaml
<Sonarman> matching numberOne var with var doesn't match numerOne var with the value stored in var
<Sonarman> instead it binds var to the result of numberOne var
<Sonarman> you could use a guard
<Snark> slt
<eviltoylet> could you explain to me what that is Sonarman?
<Snark> lablgtk2 question
<eviltoylet> Snark: ?
<Snark> I have a GText.tag
<eviltoylet> i have no idea what that is
<Snark> I have connected the event event with a callback
<Snark> and would like to use it to show a popup
<Snark> the problem is that the event is an any event
<Snark> and although I can detect it is a button press (GdkEvent.get_type event = `BUTTON_PRESS), I don't know how to get which button
<eviltoylet> oh. you're asking a question.
<Snark> GdkEvent.Button.button event of course doesn't work
<eviltoylet> >_< never mind then.
<Snark> eviltoylet: yes :-)
<eviltoylet> Sonarman: are there any other alternatives to using the guard? Perhaps a different approach?
Sonarman_ has joined #ocaml
Sonarman has quit [Nick collision from services.]
Sonarman_ is now known as Sonarman
<eviltoylet> Sonarman: timeed out?
<Sonarman> eviltoylet: sorry, i don't think so. you could always use an if-statement, but that sort of defeats the purpose
<Sonarman> i don't know ocaml very well
<Sonarman> kicked the cord out of the modem :)
<eviltoylet> oh lol. got too excited? :)
<Sonarman> i suggest you read a good ocaml primer if you want to learn how to use guards and the other useful features of the language
<Sonarman> yes; that must have been it :)
* Snark is stuck
<Snark> this Gdk.Tags.event_type Gdk.event is a GdkEvent.Button.types Gdk.event... :-/
<Snark> GdkEvent.cast [`BUTTON_PRESS] event !!!
Herrchen has joined #ocaml
Submarine has joined #ocaml
Herrchen has quit ["bye"]
tintin has quit [Read error: 104 (Connection reset by peer)]
eviltoylet has quit [Read error: 110 (Connection timed out)]
Sonarman has quit ["leaving"]
angagon has quit ["Download Gaim: http://gaim.sourceforge.net/"]
smimou has joined #ocaml
vivek has joined #ocaml
vivek is now known as tintin
vodka-goo has joined #ocaml
kinners has joined #ocaml
<ulfdoz_> re
kinners has quit ["leaving"]
cj|sleep is now known as cjohnson
vezenchio has joined #ocaml
Gueben has joined #ocaml
ikor has joined #ocaml
dmentre has joined #ocaml
CosmicRay has joined #ocaml
CosmicRay has left #ocaml []
dmentre is now known as d_fait_autre_cho
d_fait_autre_cho has left #ocaml []
ikor has quit ["ERC Version 4.0 $Revision: 1.703 $ (IRC client for Emacs)"]
pango__ has joined #ocaml
pango_ has quit [Read error: 60 (Operation timed out)]
rossberg has joined #ocaml
_JusSx_ has joined #ocaml
vodka-goo has quit []
__DL__ has quit [Remote closed the connection]
_JusSx_ has quit ["leaving"]
_JusSx_ has joined #ocaml
bzzbzz has joined #ocaml
_JusSx_ has quit ["Lost terminal"]
ganjalink has joined #ocaml
<ganjalink> iop
ganjalink has quit ["Quit rulez !"]
_JusSx_ has joined #ocaml
Snark has quit ["Leaving"]
pnou has joined #ocaml
CosmicRay has joined #ocaml
Submarine has quit ["Leaving"]
vodka-goo has joined #ocaml
Gueben has quit ["Leaving"]
ulfdoz_ has quit ["gleich wieder da."]
smimou has quit ["?"]
CosmicRay has quit ["Leaving"]
_JusSx_ has quit ["leaving"]
vodka-goo has quit []
pango__ has quit [sterling.freenode.net irc.freenode.net]
tintin has quit [sterling.freenode.net irc.freenode.net]
senko has quit [sterling.freenode.net irc.freenode.net]
vincenz has quit [sterling.freenode.net irc.freenode.net]
CLxyz has quit [sterling.freenode.net irc.freenode.net]
_shawn has quit [sterling.freenode.net irc.freenode.net]
pnou has quit [sterling.freenode.net irc.freenode.net]
skylan has quit [sterling.freenode.net irc.freenode.net]
joeytwiddle has quit [sterling.freenode.net irc.freenode.net]
gim has quit [sterling.freenode.net irc.freenode.net]
rossberg has quit [sterling.freenode.net irc.freenode.net]
dan2 has quit [sterling.freenode.net irc.freenode.net]
mauke has quit [sterling.freenode.net irc.freenode.net]
det has quit [sterling.freenode.net irc.freenode.net]
j_n has quit [sterling.freenode.net irc.freenode.net]
mellum has quit [sterling.freenode.net irc.freenode.net]
cjohnson has quit [sterling.freenode.net irc.freenode.net]
Hadaka has quit [sterling.freenode.net irc.freenode.net]
cognominal has quit [sterling.freenode.net irc.freenode.net]
mattam has quit [sterling.freenode.net irc.freenode.net]
shrimpx has quit [sterling.freenode.net irc.freenode.net]
calvin_ has quit [sterling.freenode.net irc.freenode.net]
noj has quit [sterling.freenode.net irc.freenode.net]
Hipo has quit [sterling.freenode.net irc.freenode.net]
mflux has quit [sterling.freenode.net irc.freenode.net]
bzzbzz has quit [sterling.freenode.net irc.freenode.net]
vezenchio has quit [sterling.freenode.net irc.freenode.net]
cmeme has quit [sterling.freenode.net irc.freenode.net]
haakonn has quit [sterling.freenode.net irc.freenode.net]
mflux has joined #ocaml
bzzbzz has joined #ocaml
pango__ has joined #ocaml
vezenchio has joined #ocaml
tintin has joined #ocaml
senko has joined #ocaml
cjohnson has joined #ocaml
Hadaka has joined #ocaml
cognominal has joined #ocaml
haakonn has joined #ocaml
mattam has joined #ocaml
cmeme has joined #ocaml
vincenz has joined #ocaml
CLxyz has joined #ocaml
shrimpx has joined #ocaml
calvin_ has joined #ocaml
Hipo has joined #ocaml
noj has joined #ocaml
pnou has joined #ocaml
rossberg has joined #ocaml
_shawn has joined #ocaml
dan2 has joined #ocaml
skylan has joined #ocaml
joeytwiddle has joined #ocaml
mauke has joined #ocaml
gim has joined #ocaml
det has joined #ocaml
j_n has joined #ocaml
mellum has joined #ocaml