cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
kinners has joined #ocaml
smimou has quit ["?"]
yauz_ has joined #ocaml
yauz has quit [Read error: 110 (Connection timed out)]
kinners has quit [Read error: 54 (Connection reset by peer)]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
<debona|r>
heh
<debona|r>
look at that, I'm next to myself
<Axioplase>
++
Axioplase has quit [Read error: 104 (Connection reset by peer)]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Herrchen_ has joined #ocaml
gl has quit [Read error: 110 (Connection timed out)]
Herrchen has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
ne1 has quit ["To understand recursion, you must first understand recursion."]
Snark has joined #ocaml
gl has joined #ocaml
debona|r has left #ocaml []
Herrchen_ is now known as Herrchen
cmeme has quit ["Client terminated by server"]
cmeme has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
vezenchio has quit ["Join the fight against drunken calculus: Don't drink and derive!"]
Riastradh has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
smimou has joined #ocaml
dan|el has quit [Read error: 110 (Connection timed out)]
gim has quit [Read error: 104 (Connection reset by peer)]
gim has joined #ocaml
kinners has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
karryall_ has joined #ocaml
kinners has quit [Read error: 60 (Operation timed out)]
cods has quit [Read error: 110 (Connection timed out)]
Riastradh has joined #ocaml
Axioplase has joined #ocaml
<Axioplase>
Chat Lu!
nmajer has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
dan|el has joined #ocaml
bk_ has joined #ocaml
<dan|el>
silence again
mrsolo_ has quit [Read error: 60 (Operation timed out)]
<vincenz>
Aloha
karryall_ has quit ["tcho"]
<dan|el>
hullo
<dan|el>
how do I run ocaml files as a script?
<dan|el>
ocaml script.ml works fine...
<dan|el>
but using #!/usr/bin/ocaml in the script itself doesn't work
<dan|el>
the shell seems to think it's a shellscript
<dan|el>
!/usr/bin/ocaml
<dan|el>
print_string "blah blah";;
<vincenz>
You forgot the #?
<dan|el>
oops
<dan|el>
yes, I did, when pasting
<dan|el>
#!/usr/bin/ocaml
<dan|el>
print_string "blah blah";;
<dan|el>
but not in the code itself
<dan|el>
have you gotten it working?
<vincenz>
isn't it #!/usr/bin/setenv /usr/bin/ocaml
<vincenz>
?
<dan|el>
nope
<dan|el>
#!/usr/bin/env ocaml if you want to do it that way
<dan|el>
hm, that actually works
<dan|el>
but that's usually for portability issues
<dan|el>
when ocaml can actually reside in /usr/bin or /usr/local/bin
<vincenz>
ah
<dan|el>
however, it worked, so I will use that for now
<dan|el>
but I'm still puzzled why the direct path didn't work
<dan|el>
*boggle*
<dan|el>
thanks
<vincenz>
np
<dan|el>
ok, how about command arguments ?
<dan|el>
any argv argc things?
<det>
dan|el: you dont wish to compile it?
<det>
dan|el: you would be better off using ocamlopt to compile it first
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
<dan|el>
det: scripts are good for prototyping
Lemmih has quit ["Leaving"]
<det>
dan|el: the ocaml compiler is fast
<dan|el>
there's still an extra step
<det>
dan|el: (edit), make test, (edit), make test
<dan|el>
regardless, do you know how to access argv and argc?
<det>
Sys.argv
<dan|el>
det: it's actually not so much a question of test... I'm learning the language, so I need to explore a lot of things... so it's more like.... (edit),make,run,(edit),make,run vs (edit),run :)
<dan|el>
do you have a good function reference page you can share?
<det>
argc is unnessecary
<dan|el>
step 1 of learning a new language: Find tutorials and references pages!
<det>
use Array.length
<det>
dan|el: I just googled for "ocaml argv" :)
<det>
dan|el: the official reference should do
<dan|el>
ah :P
<dan|el>
what is the official reference? I checked the main website