flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
ozy` has quit []
sporkmonger has joined #ocaml
pantsd has joined #ocaml
Associat0r has joined #ocaml
Associ8or has joined #ocaml
Associat0r has quit [Read error: 113 (No route to host)]
Associat0r has joined #ocaml
Associ8or has quit [Connection reset by peer]
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
Mr_Awesome has quit [Connection timed out]
<palomer> hrmph
prince has joined #ocaml
prince has quit [SendQ exceeded]
prince has joined #ocaml
Palace_Chan has joined #ocaml
threeve has joined #ocaml
christo_m has joined #ocaml
<palomer> double hrmph
<christo_m> is it possible to concatenate strings and floats
<christo_m> something like print_endline "this is a string" +. 0.4
<palomer> "foo" ^ string_of_float 0.4
<christo_m> ah can you explain what's going on there
<christo_m> some sort of casting?
<thelema> christo_m: just a normal conversion.
<thelema> no automatic casts in ocaml.
<thelema> only functions that convert between common datatypes.
prince has quit [Client Quit]
<palomer> string_of_float takes a float and returns a string
christo_m has quit ["sleep"]
threeve has quit []
Snark has joined #ocaml
coucou747 has joined #ocaml
Submarine has joined #ocaml
ozy` has joined #ocaml
gdmfsob has joined #ocaml
reillyeon has joined #ocaml
reillyeon has quit ["leaving"]
Mr_Awesome has joined #ocaml
Submarine has quit [Read error: 110 (Connection timed out)]
Palace_Chan has quit [Client Quit]
filp has joined #ocaml
Submarine has joined #ocaml
Yoric[DT] has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]> hi
<flux> hello.
<Yoric[DT]> No news of ertai?
rwmjones_afk is now known as rwmjones
ozy` has quit [Read error: 104 (Connection reset by peer)]
<palomer> gdk_window_get_origin <--I can't find this function anywhere in lablgtk
<palomer> anyone know where it is?
* Yoric[DT] has given up on understanding the documentation of lablgtk a long time ago.
<palomer> Yoric[DT], mind doing a quick grep of the word origin?
<palomer> I don't have the lablgtk source on me
<Yoric[DT]> grep doesn't find it
<Yoric[DT]> :/
<Yoric[DT]> I don't have the full source, mind you, only the .mli .
Proteus has quit [Read error: 104 (Connection reset by peer)]
Proteus_ has joined #ocaml
Snark has quit ["Ex-Chat"]
Yoric[DT] has quit ["Ex-Chat"]
<palomer> mli should be enough
Submarine has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
OChameau has joined #ocaml
OChameau has quit [calvino.freenode.net irc.freenode.net]
bohanlon has quit [calvino.freenode.net irc.freenode.net]
Asmadeus_ has quit [calvino.freenode.net irc.freenode.net]
petchema has quit [calvino.freenode.net irc.freenode.net]
ozzloy has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
maxote has quit [calvino.freenode.net irc.freenode.net]
xevz has quit [calvino.freenode.net irc.freenode.net]
rwmjones has quit [calvino.freenode.net irc.freenode.net]
mbishop has quit [calvino.freenode.net irc.freenode.net]
cmeme has quit [calvino.freenode.net irc.freenode.net]
authentic has quit [calvino.freenode.net irc.freenode.net]
rodge has quit [calvino.freenode.net irc.freenode.net]
Associat0r has quit [calvino.freenode.net irc.freenode.net]
sbok_ has quit [calvino.freenode.net irc.freenode.net]
munga has quit [calvino.freenode.net irc.freenode.net]
lde has quit [calvino.freenode.net irc.freenode.net]
jdev has quit [calvino.freenode.net irc.freenode.net]
palomer has quit [calvino.freenode.net irc.freenode.net]
haelix has quit [calvino.freenode.net irc.freenode.net]
Submarine has quit [calvino.freenode.net irc.freenode.net]
filp has quit [calvino.freenode.net irc.freenode.net]
mlh has quit [calvino.freenode.net irc.freenode.net]
snhmib has quit [calvino.freenode.net irc.freenode.net]
svenl has quit [calvino.freenode.net irc.freenode.net]
jeremiah has quit [calvino.freenode.net irc.freenode.net]
tab has quit [calvino.freenode.net irc.freenode.net]
bla has quit [calvino.freenode.net irc.freenode.net]
struk_atwork has quit [calvino.freenode.net irc.freenode.net]
mike_mcclurg has quit [calvino.freenode.net irc.freenode.net]
Proteus_ has quit [calvino.freenode.net irc.freenode.net]
coucou747 has quit [calvino.freenode.net irc.freenode.net]
pantsd has quit [calvino.freenode.net irc.freenode.net]
Jedai has quit [calvino.freenode.net irc.freenode.net]
jonafan has quit [calvino.freenode.net irc.freenode.net]
mattam has quit [calvino.freenode.net irc.freenode.net]
TaXules has quit [calvino.freenode.net irc.freenode.net]
Amorphous has quit [calvino.freenode.net irc.freenode.net]
viimrles has quit [calvino.freenode.net irc.freenode.net]
rpg has quit [calvino.freenode.net irc.freenode.net]
det has quit [calvino.freenode.net irc.freenode.net]
gim has quit [calvino.freenode.net irc.freenode.net]
ppsmimou has quit [calvino.freenode.net irc.freenode.net]
tsuyoshi has quit [calvino.freenode.net irc.freenode.net]
DRMacIver has quit [calvino.freenode.net irc.freenode.net]
r0bby has quit [calvino.freenode.net irc.freenode.net]
sporkmonger has quit [calvino.freenode.net irc.freenode.net]
Axioplase_ has quit [calvino.freenode.net irc.freenode.net]
mfp has quit [calvino.freenode.net irc.freenode.net]
smimram has quit [calvino.freenode.net irc.freenode.net]
dobblego has quit [calvino.freenode.net irc.freenode.net]
kelaouchi has quit [calvino.freenode.net irc.freenode.net]
rby has joined #ocaml
kelaouchi has joined #ocaml
rwmjones has joined #ocaml
cmeme has joined #ocaml
maxote has joined #ocaml
mbishop has joined #ocaml
xevz has joined #ocaml
Smerdyakov has joined #ocaml
ozzloy has joined #ocaml
petchema has joined #ocaml
Asmadeus_ has joined #ocaml
bohanlon has joined #ocaml
OChameau has joined #ocaml
tab has joined #ocaml
haelix has joined #ocaml
bla has joined #ocaml
jdev has joined #ocaml
palomer has joined #ocaml
struk_atwork has joined #ocaml
mike_mcclurg has joined #ocaml
authentic has joined #ocaml
lde has joined #ocaml
rodge has joined #ocaml
jeremiah has joined #ocaml
svenl has joined #ocaml
mlh has joined #ocaml
sbok_ has joined #ocaml
snhmib has joined #ocaml
Associat0r has joined #ocaml
filp has joined #ocaml
Submarine has joined #ocaml
Proteus_ has joined #ocaml
coucou747 has joined #ocaml
pantsd has joined #ocaml
sporkmonger has joined #ocaml
Jedai has joined #ocaml
Amorphous has joined #ocaml
mfp has joined #ocaml
Axioplase_ has joined #ocaml
viimrles has joined #ocaml
DRMacIver has joined #ocaml
jonafan has joined #ocaml
rpg has joined #ocaml
smimram has joined #ocaml
ppsmimou has joined #ocaml
det has joined #ocaml
dobblego has joined #ocaml
r0bby has joined #ocaml
gim has joined #ocaml
mattam has joined #ocaml
TaXules has joined #ocaml
tsuyoshi has joined #ocaml
bohanlon has quit [calvino.freenode.net irc.freenode.net]
maxote has quit [calvino.freenode.net irc.freenode.net]
cmeme has quit [calvino.freenode.net irc.freenode.net]
petchema has quit [calvino.freenode.net irc.freenode.net]
xevz has quit [calvino.freenode.net irc.freenode.net]
OChameau has quit [calvino.freenode.net irc.freenode.net]
rwmjones has quit [calvino.freenode.net irc.freenode.net]
ozzloy has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
Asmadeus_ has quit [calvino.freenode.net irc.freenode.net]
mbishop has quit [calvino.freenode.net irc.freenode.net]
rodge has quit [calvino.freenode.net irc.freenode.net]
authentic has quit [calvino.freenode.net irc.freenode.net]
rodge has joined #ocaml
authentic has joined #ocaml
Submarine has quit ["Leaving"]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
pango has quit [Nick collision from Idoru.]
jeremiah has joined #ocaml
petchema_ has joined #ocaml
OChameau has joined #ocaml
bohanlon has joined #ocaml
Asmadeus_ has joined #ocaml
ozzloy has joined #ocaml
Smerdyakov has joined #ocaml
xevz has joined #ocaml
mbishop has joined #ocaml
maxote has joined #ocaml
cmeme has joined #ocaml
rwmjones has joined #ocaml
jeremiah has quit [Read error: 104 (Connection reset by peer)]
maxote has quit [calvino.freenode.net irc.freenode.net]
OChameau has quit [calvino.freenode.net irc.freenode.net]
petchema_ has quit [calvino.freenode.net irc.freenode.net]
xevz has quit [calvino.freenode.net irc.freenode.net]
bohanlon has quit [calvino.freenode.net irc.freenode.net]
mbishop has quit [calvino.freenode.net irc.freenode.net]
cmeme has quit [calvino.freenode.net irc.freenode.net]
rwmjones has quit [calvino.freenode.net irc.freenode.net]
ozzloy has quit [calvino.freenode.net irc.freenode.net]
Asmadeus_ has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
Naked is now known as Hadaka
jeremiah has joined #ocaml
Axioplase_ is now known as Axioplase
svenl has quit [Read error: 110 (Connection timed out)]
petchema_ has joined #ocaml
OChameau has joined #ocaml
bohanlon has joined #ocaml
Asmadeus_ has joined #ocaml
ozzloy has joined #ocaml
Smerdyakov has joined #ocaml
xevz has joined #ocaml
mbishop has joined #ocaml
maxote has joined #ocaml
cmeme has joined #ocaml
rwmjones has joined #ocaml
svenl has joined #ocaml
Axioplase is now known as Axioplase_
rby has quit ["This computer has gone to sleep"]
pantsd has quit ["Leaving."]
Yoric[DT] has joined #ocaml
prince has joined #ocaml
prince has quit [SendQ exceeded]
prince has joined #ocaml
rby has joined #ocaml
pantsd has joined #ocaml
rmns has joined #ocaml
<ertai> Yoric[DT]: I've answered your mail, sorry for the handshaking issue :)
Yoric[DT] has quit ["Ex-Chat"]
ertai is now known as ertai[NP]
Associat0r has quit []
Axioplase_ is now known as Axioplase
GustNG has joined #ocaml
GustNG1 has joined #ocaml
rby has quit ["This computer has gone to sleep"]
rby has joined #ocaml
GustNG has quit [Read error: 110 (Connection timed out)]
thelema has joined #ocaml
DroneZilla has joined #ocaml
gdmfsob has quit [Read error: 60 (Operation timed out)]
Associat0r has joined #ocaml
inspecteur_ has joined #ocaml
rmns has quit [Read error: 110 (Connection timed out)]
damg has joined #ocaml
rmns has joined #ocaml
jlouis has joined #ocaml
rby has quit ["This computer has gone to sleep"]
Linktim has joined #ocaml
longh has joined #ocaml
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
GustNG1 has quit ["Leaving."]
GustNG has joined #ocaml
<olegfink> hi
<olegfink> tell me what's wrong with it, I finally mastered camlp4 enough to write that suspend thing I was bugging everyone about
thelema has quit [Read error: 60 (Operation timed out)]
vixey has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
OChameau has quit ["Leaving"]
Snark_ has joined #ocaml
filp has quit ["Bye"]
struktured has quit [Read error: 110 (Connection timed out)]
<rwmjones> olegfink, what's the problem?
GustNG1 has joined #ocaml
Submarine_ has joined #ocaml
<olegfink> er, no problem
<olegfink> I just wanted some sort of a review
<olegfink> rwmjones: though I have some questions
<olegfink> first, I use _suspend_i for my private identifier. Is there a way to use a name which is guaranteed not to be used in the code?
<olegfink> the other thing is that current syntax for suspension is such that \a b c is \(a) b c.
<olegfink> how can I make it span to the right as far as possible, so that \a b c is \(a b c)?
<olegfink> also both \ and # are currently expressions, shouldn't they be prefix operators?
struktured has joined #ocaml
<rwmjones> olegfink, _suspend_i: have a look at gensym in
<rwmjones> as for the other thing, it's possible to change the precedence of new operators that you add. I don't really do that very much, but I'll see if I can find out for you.
<olegfink> oh, that gensym is of absolutely no use for me. It's useful when I need many identifiers, but I need exactly one.
<rwmjones> olegfink, just use some very obscure name in that case
<rwmjones> I don't think there is a true gensym like in lisp
<olegfink> well, mine is obscure enough, I was just wondering if there is some nice way to be sure I have something unique
<rwmjones> olegfink, you should be careful if you syntax extension allows nesting (itself) then your single unique symbol might not be as unique as you think
<olegfink> oh, you're right, though it isn't a problem in my case, as I use the symbol as a loop counter
<olegfink> but I should better implement a gensym anyway
<olegfink> thanks for the link with precedence, I should have remembered that tutorial
<olegfink> so there isn't such thing as 'operator' in camlp4?
<rwmjones> ? not sure .. sounds like a question for caml-list
<olegfink> cool, I'll ask there once I gather enough questions
<olegfink> thanks a lot
GustNG has quit [Read error: 110 (Connection timed out)]
GustNG has joined #ocaml
itewsh has joined #ocaml
Snark_ has quit ["Ex-Chat"]
GustNG1 has quit [Read error: 110 (Connection timed out)]
GustNG1 has joined #ocaml
GustNG2 has joined #ocaml
Linktim_ has joined #ocaml
GustNG has quit [Read error: 110 (Connection timed out)]
itewsh has quit ["KTHXBYE"]
thelema has joined #ocaml
GustNG1 has quit [Read error: 110 (Connection timed out)]
Linktim has quit [Read error: 113 (No route to host)]
Submarine_ is now known as Submarine
guillem has joined #ocaml
rby has joined #ocaml
christo_m has joined #ocaml
<christo_m> im trying to concatenate a string and a float, can someone tell me what's wrong with the syntax here:
<christo_m> print_endline "testing x value of 0.3 with y value of 0.2 with a result of " ^ string_of_float(bismuth 0.3 0.2)
<Smerdyakov> Function call binds more tightly than infix operators. Does that suggest the fix?
<christo_m> paranthesis?
<Smerdyakov> Why ask when you can try?
<christo_m> im not sure where to place them
<christo_m> but okay
<Smerdyakov> The information I just gave uniquely determines the answer.
<christo_m> im not sure which is the infix operator, are you referring to the ^?
<GustNG2> Yes
<christo_m> GustNG2: okay so..
<christo_m> im missing it here, sorry
<GustNG2> Parens around the convert function
<christo_m> you mean like .... ^ (string_of_float(bismuth 0.3 0.2)) right?
<christo_m> i tried that, it didnt work
<Smerdyakov> No, parens after [print_endline] and so on.
Palace_Chan has joined #ocaml
<GustNG2> Oh right missed the beginning
<GustNG2> This order is simplest to understand but clumsy in most cases I think. :p
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
vixey has quit [Read error: 113 (No route to host)]
vixey has joined #ocaml
rmns has left #ocaml []
<christo_m> well, this is giving me errors so..
hkBst has joined #ocaml
christo_m has quit ["Lost terminal"]
mohbana has joined #ocaml
<mohbana> hi, is objective ml the same as ocaml?
Torment has joined #ocaml
prince has quit [No route to host]
Associat0r has quit []
<jlouis> mohbana, yes
<jlouis> mohbana, or rather objective caml is
mohbana has quit [Read error: 104 (Connection reset by peer)]
GustNG2 has quit [Read error: 110 (Connection timed out)]
rwmjones_ has joined #ocaml
christo_m has joined #ocaml
<christo_m> did anyone look at this: http://pastebin.com/m1a342c92
prince has joined #ocaml
<christo_m> im at a loss as to what to do
<Smerdyakov> christo_m, what do you mean "what to do"?
<christo_m> well it's giving me an error
pantsd has quit ["Leaving."]
<Smerdyakov> You need to end your top-level [let] with a double-semicolon.
<Smerdyakov> I prefer to avoid using top-level expressions in OCaml, which gets you around this problem.
<Smerdyakov> You can replace the last line of code with [let _ = ...], for instance.
Jedai has quit [Read error: 110 (Connection timed out)]
Linktim_ has quit ["Quitte"]
<christo_m> Smerdyakov: sorry could you make the chnages on pastebin and show me
<christo_m> This expression is not a function, it cannot be applied
<christo_m> im getting this type of error still
<Smerdyakov> No. Add two semicolons at the end of the 2nd last line.
<christo_m> i did.
<christo_m> let _ = ("testing x value of 0.3 with y value of 0.2 with a result of " ^ string_of_float(bismuth (0.3 0.2)))
<christo_m> and thats my last line.
<Smerdyakov> That should work.
itewsh has joined #ocaml
inspecteur_ has quit ["mv marmotine Laurie"]
<christo_m> it doesnt.
DroneZilla has left #ocaml []
<Smerdyakov> Please update your paste with the new code.
<Smerdyakov> Oh, I see. You don't understand currying.
<Smerdyakov> Do you know the word?
<Smerdyakov> (BTW, you can remove all double-semicolons from this file now, since you took my [let _] suggestion.)
<christo_m> no
<christo_m> Smerdyakov: explain.. :(
<Smerdyakov> No, I won't explain.
<Smerdyakov> Look up "currying" in whatever source you're using to learn OCaml.
<christo_m> making a function that takes multiple inputs take a single input?
<rwmjones_> christo_m, Smerdyakov is being obscure as usual ... are you trying to print out something with that last statement?
<christo_m> yes
<rwmjones_> christo_m, so you probably want to use printf?
<christo_m> not quite
<Smerdyakov> rwmjones, that is completely unrelated to his problem.
<Smerdyakov> rwmjones, he has defined his own curried function and doesn't know how to call it.
<christo_m> wtf
<christo_m> bismuth 0.3 0.2 should work
<christo_m> i gave 2 parameters, and it accepts 2 parameters
<rwmjones_> christo_m, try http://pastebin.com/m7ce65bef
<Smerdyakov> christo_m, no, you gave it one parameter, an application of 0.3 to 0.2.
<christo_m> i dont get it
<christo_m> in the interpreter i can call it like how i showed you above
<christo_m> and it works
<Smerdyakov> christo_m, no.
<christo_m> Smerdyakov: yes
<christo_m> k i fixed it
<christo_m> thanks rwmjones_
<Smerdyakov> christo_m, no, your statement was false.
<christo_m> what are you talking about
<Smerdyakov> <christo_m> in the interpreter i can call it like how i showed you above
<rwmjones_> christo_m, ignore him
guillem has quit [Remote closed the connection]
<christo_m> rwmjones_: pm
jlouis has quit ["Leaving"]
<christo_m> alright wlel
<christo_m> i shouldve just left it how i had it before i dont know why i had to mess with it
rby has quit ["This computer has gone to sleep"]
rwmjones_ has quit ["Closed connection"]
struktured_ has joined #ocaml
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
itewsh has quit [Read error: 104 (Connection reset by peer)]
christo_m has quit ["class"]
filp has joined #ocaml
filp has quit [Client Quit]
struktured has quit [Read error: 110 (Connection timed out)]
hkBst has quit [Read error: 104 (Connection reset by peer)]
Submarine has quit [Read error: 110 (Connection timed out)]
longh has quit [Client Quit]
damg has quit [Read error: 104 (Connection reset by peer)]
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
Yoric[DT] has quit ["Ex-Chat"]
sporkmonger has quit []
rhar has joined #ocaml