sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
shans_home__ has joined #ocaml
velco has quit ["I'm outta here ..."]
rillig has joined #ocaml
zak_ is now known as llama32
shans_home_ has quit [Read error: 110 (Connection timed out)]
pango_ has joined #ocaml
trebron has quit [Remote closed the connection]
pango_ has quit [Remote closed the connection]
Smirnov has quit [Read error: 110 (Connection timed out)]
pango_ has joined #ocaml
<whatsup103> dark_light: im meating rice and beans .........im half way through eating and its already getting old
<dark_light> :)
<whatsup103> and they are not even black beans
<whatsup103> GRRRRR
<whatsup103> pinto beans
<dark_light> eheheh
pango has quit [Remote closed the connection]
<whatsup103> what you like better pinto or black ?
<dark_light> what is pinto bean?
<levi_home> Mmm, black beans.
<whatsup103> pinto is
<whatsup103> light brown
<whatsup103> theres black brown green and red
<dark_light> so i prefer black
<whatsup103> me toooo
<dark_light> but brown beans are better for me
<whatsup103> i see
<whatsup103> they both have their ups and downs
<whatsup103> black beans + white rice and lime juice :D
<dark_light> :)
<dark_light> in my case, orange juice
<dark_light> hmm
<dark_light> :>
<whatsup103> no lol lime juice IN the dish
<whatsup103> just a little
<whatsup103> i dont drunk the lime juice lol
<whatsup103> drink
<whatsup103> dark_light: you like lima beans or kidney beans ? green / red ?
<dark_light> yeah some of
<whatsup103> i like green
<dark_light> red i never saw (i think)
<whatsup103> ooooo
<whatsup103> red is popular in southern usa cooking
<whatsup103> and mexican
joshcryer has joined #ocaml
hcarty has quit [Remote closed the connection]
hcarty has joined #ocaml
triple_ has quit [Remote closed the connection]
johnnowak has joined #ocaml
triple_ has joined #ocaml
triple_ has quit [Remote closed the connection]
triple_ has joined #ocaml
triple_ has quit [Remote closed the connection]
triple_ has joined #ocaml
triple_ has quit [Remote closed the connection]
triple_ has joined #ocaml
llama32 has quit [Remote closed the connection]
triple_ has quit [Remote closed the connection]
triple_ has joined #ocaml
<whatsup103> damn i really need to do this
<whatsup103> pango_: and i dont think your method i working all to well
triple_ has quit ["leaving"]
<whatsup103> Pervasives.in_channel
<whatsup103> im not exactly sure what this is also
ziggurat has quit ["Leaving"]
beschmi has quit ["Leaving"]
beschmi has joined #ocaml
beschmi has quit [Remote closed the connection]
shawn has joined #ocaml
rillig has quit ["exit(EXIT_SUCCESS)"]
shans_home__ is now known as shans_home
<stevan> whatsup103: in_channel is simple a filehandle open for reading
joshcryer has quit [Read error: 131 (Connection reset by peer)]
<dark_light> is there any way to do a "partial" search in a hash table of Hashtbl module? like, i want pass a function and the search will stop when that function returns true
<dark_light> i am thinking in doing Hashtbl.iter, or, re-implementing hash tables (actually copying and pasting the Hashtbl's code and changing things)
joshcryer has joined #ocaml
Smerdyakov has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
joshcryer has quit [Connection reset by peer]
twobitsprite has quit [Read error: 110 (Connection timed out)]
dark_light has quit [Remote closed the connection]
hcarty has quit [Remote closed the connection]
hcarty has joined #ocaml
shawn has quit [sterling.freenode.net irc.freenode.net]
descender has quit [sterling.freenode.net irc.freenode.net]
gunark has quit [sterling.freenode.net irc.freenode.net]
stevan has quit [sterling.freenode.net irc.freenode.net]
gunark has joined #ocaml
gunark has quit [Killed by ballard.freenode.net (Nick collision)]
shawn has joined #ocaml
descender has joined #ocaml
gunark has joined #ocaml
stevan has joined #ocaml
<love-pingoo> dark_light should have learnt exceptions instead of reimplementing hashtbl... too late
Demitar has joined #ocaml
joshcryer has joined #ocaml
ChoJin has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
Demitar has quit ["Ex-Chat"]
bebui has quit [Read error: 113 (No route to host)]
<flux__> althoguh IMO exceptions is a lame solution - maybe an acceptable workaround, though
ChoJin has quit ["This computer has gone to sleep"]
johnnowak has quit []
bluestorm has joined #ocaml
_fab has joined #ocaml
ikaros has quit [Read error: 113 (No route to host)]
_velco has joined #ocaml
klapmuetz has joined #ocaml
triple_ has joined #ocaml
setog3 has joined #ocaml
swater has joined #ocaml
<eradman> \quit
eradman has quit ["leaving"]
_velco is now known as velco
shawn has quit ["This computer has gone to sleep"]
klapmuetz has quit [Read error: 104 (Connection reset by peer)]
hcarty has quit [Remote closed the connection]
hcarty_ has joined #ocaml
shawn has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
ikaros has joined #ocaml
bebui has joined #ocaml
asm has joined #ocaml
smimou has joined #ocaml
malc_ has joined #ocaml
Submarine has joined #ocaml
bluestorm has joined #ocaml
malc_ has quit ["leaving"]
Skal has joined #ocaml
asm has quit [Remote closed the connection]
stevan_ has joined #ocaml
stevan has quit [Read error: 110 (Connection timed out)]
Smerdyakov has joined #ocaml
Demitar has joined #ocaml
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
<whatsup103> good day
twobitsprite has joined #ocaml
<twobitsprite> hmm... I always have a hard time remembering the difference between fun and function
<Smerdyakov> Why? It's easy.
<twobitsprite> I can't find anywhere in the docs which lays it out... is it function or fun that lets you do pattern matching?
<pango_> function
<twobitsprite> ahh... and so function is the one that only lets you accept one argument...?
<twobitsprite> Smerdyakov: ahh, thanks
<Smerdyakov> You should have been able to find the section yourself, seeing as how you just follow the links to language reference, core language, expressions....
<twobitsprite> Smerdyakov: sorry, I was looking in the wrong sections
malc_ has joined #ocaml
<twobitsprite> ok, this time I'm sure I looked through the docs as best I can, but is "String.make 1 my_chr" the best way to convert a character to a string?
ramkrsna has joined #ocaml
<Smerdyakov> Best I'm aware of using only the standard library
<pango_> the best way is usually to avoid building such strings ;) But sometimes, there's no other way
<twobitsprite> pango_: actually, I suppose I could just make an actual character list... that would work better than having to tack on characters to a string...
<pango_> check Buffer module, too
<twobitsprite> pango_: perfect, thanks :)
<bluestorm> do you know when will the new camlp4 version be ready ?
Lockless has joined #ocaml
Naked has joined #ocaml
Naked is now known as Hadaka
<mellum> Why can't I do this: match l with [] | a::_ when a = 1 -> 0;;
<mellum> gets me Variable a must occur on both sides of this | pattern
<pango_> what will a be bound to in the right hand side if that's [] that matches ?
<Smerdyakov> mellum, 'when' clauses go with 'match' cases, not patterns.
<mellum> pango_: I don't care, since a is not used there :)
<stevan_> mellum: it seems that ocaml cares though :)
<mellum> Bah.
<stevan_> mellum: you might need to break this up a little
<stevan_> match l with [] -> 0 | a::_ when a = 1 -> 0;; works
<stevan_> although it does complain that not all patterns are matching
<stevan_> or rather that the pattern-matching is not exhaustive
<pango_> stevan_: which is correct, it's not exhaustive
<stevan_> the problem with your first approach is that when it matches [] there is no value for a
stevan_ is now known as stevan
<mellum> stevan: I wanted to avoid repeating the "0" (since it was a bit more complex in my case). And I had matches for the other cases, too (this was just an example...)
<mellum> anyway, I found a way to circumvent the whole problem, so I'm happy now :)
<stevan> mellum: :)
Submarine has quit [Remote closed the connection]
malc_ has quit ["leaving"]
<pango_> Smerdyakov: remark is exact too, the guard applies to both patterns, not only the right one
<Smerdyakov> pango_, well, yes, I meant my remark to be exact..?
<pango_> s/:// (stupid IRC clients :) )
<pango_> in fact [] | a :: _ *is* a single pattern (a "or" pattern, as the manual calls them)... So the two pipes in | [] | a :: _ have different roles
swater has quit ["Quat"]
batdog|gone is now known as batdog
whatsup103 has quit ["Konversation terminated!"]
MrCraps has joined #ocaml
^ChoJin^ has joined #ocaml
shans_home_ has joined #ocaml
shans_home has quit [Read error: 60 (Operation timed out)]
shans_home_ is now known as shans_home
bluestorm has quit ["Konversation terminated!"]
whatsup103 has joined #ocaml
MrCraps has quit ["Verlassend"]
rillig has joined #ocaml
malc_ has joined #ocaml
_fab has quit []
^ChoJin^ is now known as ChoJin
love-pingoo has quit ["Connection reset by pear"]
Lockless has quit [Remote closed the connection]
<twobitsprite> if I have a function that passes a lazy call to itself to another function, which calls it, it this tail recursion?
<twobitsprite> I guess I can look at the asm... n/m
buluca has quit [Read error: 104 (Connection reset by peer)]
buluca has joined #ocaml
<tsuyoshi> passes a lazy call to another function? I doubt it..
danly has joined #ocaml
velco has quit ["I'm outta here ..."]
smimou has quit ["bli"]