irc.freenode.net changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
GreyLensman has joined #ocaml
Smerdy has joined #ocaml
Smerdyakov has quit [Nick collision from services.]
Smerdy is now known as Smerdyakov
mlh has quit [Client Quit]
mlh has joined #ocaml
pflanze has quit [Read error: 60 (Operation timed out)]
kinners has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
jrosdahl has quit [Read error: 60 (Operation timed out)]
mrsolo_ has joined #ocaml
Xolution has quit [Read error: 104 (Connection reset by peer)]
Xolution has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
monochrom has quit ["Don't talk to those who talk to themselves."]
GreyLensman has quit ["Leaving"]
kinners has joined #ocaml
Xolution has quit ["Leaving"]
kinners has quit [Read error: 110 (Connection timed out)]
mlh has quit [Client Quit]
mrsolo_ has quit [Read error: 54 (Connection reset by peer)]
mlh has joined #ocaml
Codename_V has joined #ocaml
<Codename_V> hi there. ocaml newbie here. I'm trying to figure out what I'm doing wrong here: http://rafb.net/paste/results/0a3U2i40.html
<Codename_V> everyone is asleep I spose?
<Codename_V> ah well, I'll keep playing with it I guess
<mflux> what are you attempting to do?
<mflux> string :: repeat .. tries to create a list
<Codename_V> repeat a string a number of times
<Codename_V> hmm, I was thinking that :: was kinda like a ; in C.
<Codename_V> how would I put two things inside the else like that then?
<mflux> use parenthesis
<mflux> or let _ = () in
<mflux> let rec repeat string number = if number = 1 then print_endline string else let _ = () in print_endline string; repeat string (number - 1);;
<mflux> however that can still be written better
<Codename_V> yeah, seems like there should be an easier way to put two things in an else expression or whatever
<Codename_V> guess I just need to read up more at this point. =)
<mflux> let rec repeat string number = match number with 0 -> () | n -> print_endline string; repeat string (n - 1);; could be another way
<mflux> although even then it could be better by handling negative values
mrsolo_ has joined #ocaml
mlh has quit [Client Quit]
smimou has joined #ocaml
mlh has joined #ocaml
Codename_V has left #ocaml []
mrsolo_ has quit [Read error: 60 (Operation timed out)]
smimou has quit ["?"]
mrsolo_ has joined #ocaml
gim has joined #ocaml
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has joined #ocaml
mlh has quit [Client Quit]
mrsolo_ has quit [Read error: 110 (Connection timed out)]
mlh has joined #ocaml
vezenchio has joined #ocaml
kuribas has joined #ocaml
kuribas is now known as kuribas_
kuribas_ is now known as kuribas
kuribas has left #ocaml []
madroach has joined #ocaml
<madroach> Hello! I have a problem with linking in -custom mode. This works:
<madroach> ocamlc -I +sdl -I +threads unix.cma bigarray.cma threads.cma sdl.cma video.ml
<madroach> This doesn't:
<madroach> ocamlc -custom -I +sdl -I +threads unix.cma bigarray.cma threads.cma sdl.cma video.ml
<madroach> It says "/usr/bin/ld: cannot find -lSDL".
pflanze has joined #ocaml
<madroach> Hi! I still have problems linking a program in -custom mode that links without problems in normal mode.
<mattam> custom lets you pass all the options, so you should use it only if you know all that are needed
<madroach> mattam: man ocamlc says something else. Can you explain it to me?
<madroach> This works: ocamlc -I +sdl -I +threads unix.cma bigarray.cma threads.cma sdl.cma video.ml
<madroach> This doesn't: ocamlc -custom -I +sdl -I +threads unix.cma bigarray.cma threads.cma sdl.cma video.ml
<madroach> Actually my problem is, that OCamlMakefile uses the -custom option and therefore doesn't work.
<madroach> Can someone tell me the options I need to link a ocaml program i -custom mode with the sdl library?
Xolution has joined #ocaml
<mattam> from the error i would say '-ccopt -L/usr/lib -ccopt -lSDL'
<mattam> I use ocamlfind packages myself, so I don't have to mess with this sort of problems
<madroach> hmm
* mattam leaves.
madroach has quit ["leaving"]
<mflux> yes, ocamlfind is a really useful tool
<mflux> another one is ocamldep
<mflux> use them and you shall receive salvation :-)
<mflux> oh, he left
<mflux> I really should check that beforehand..
<vincenz> meh
<vincenz> Even with ocamldep, you still need to ensure you put your list of objects to link for your final program in the right order
<mflux> hm?
<mflux> ah, I've also used ocamldsort
<mflux> so after that you only need to be sure you don't make circular dependencies ;)
Herrchen has joined #ocaml
Xolution has quit [Read error: 104 (Connection reset by peer)]
Xolution has joined #ocaml
monochrom has joined #ocaml
mlh has quit [Client Quit]
Herrchen has quit [Read error: 54 (Connection reset by peer)]
Herrchen has joined #ocaml
CosmicRay has joined #ocaml
gim has quit [Read error: 110 (Connection timed out)]
gim has joined #ocaml
Herrchen has quit ["ChatZilla 0.9.61 [Mozilla rv:1.7.2/20040803]"]
CosmicRay has quit ["Client exiting"]
Xolution has quit [Read error: 104 (Connection reset by peer)]
Xolution has joined #ocaml
Lemmih has quit ["Leaving"]
Lemmih has joined #ocaml
kuribas has joined #ocaml
kuribas has quit ["Leaving"]
bk_ has joined #ocaml
gim has quit ["brb"]
gene9 has joined #ocaml
gene9 has quit ["Leaving"]
jrosdahl has joined #ocaml
Xolution has quit [Connection timed out]
gim has joined #ocaml
Xolution has joined #ocaml
vezenchio has quit ["Hydrocon technology produces two waste products: steam and green goo. We dispose of the steam through various vents, strategi]
<vincenz> Anyone around?
<vincenz> does ocamlyacc have 'error' like yacc?
gim has quit ["dodo"]
GreyLensman has joined #ocaml
mlh has joined #ocaml