lament has joined #ocaml
<
systems>
nothing new on the website since october 2002
systems has quit ["Client Exiting"]
__DL__ has joined #ocaml
lament has quit [Read error: 54 (Connection reset by peer)]
docelic|away is now known as docelic
mattam_ has quit ["zZz"]
Sonarman has joined #ocaml
polin8 has quit [Read error: 60 (Operation timed out)]
polin8 has joined #ocaml
mattam has joined #ocaml
Sonarman has quit ["Lost terminal"]
emu has quit [Remote closed the connection]
emu has joined #ocaml
<
pattern_>
let foo yourarray = ref yourarray.[0] in
<
pattern_>
foo := !foo +. 2.0
<
pattern_>
let bar =
<
pattern_>
let myarray = Array.make 10 0.0 in
<
pattern_>
foo myarray
<
pattern_>
line 2, characters 4-7: This expression has type string -> char ref but is here used with type 'a ref
<
pattern_>
foo should be a float, shouldn't it?
<
pattern_>
i'm still having a similar problem, but i wrote this example wrong
<
pattern_>
let me try again...
<
pattern_>
that's what i meant
<
pattern_>
and it still gives me an error: "This expression has type char but is here used with type float"
<
pattern_>
but shouldn't foo be a float? why does ocaml think it's a char?
<
pattern_>
i've tried adding ":float" to foo's declaration, and ":float array" to the yourarray argument, but it still gives me the same error
whee has quit ["Leaving"]
<
mrvn>
pattern_: arrays use .(0)
<
mrvn>
strings use .[0]
<
pattern_>
that was driving me insane
<
pattern_>
thanks yet again, mrvn
<
pattern_>
how's the pfc going, btw?
<
pattern_>
the program winds up being too slow? or writing it is taking too long?
<
mrvn>
the program is too slow
<
pattern_>
did you profile it?
systems has joined #ocaml
smklsmkl has joined #ocaml
smkl has quit [Remote closed the connection]
systems has quit [Read error: 110 (Connection timed out)]
async has quit [Remote closed the connection]
smklsmkl is now known as smkl
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
two-face has joined #ocaml
two-face has left #ocaml []
skylan has quit [Read error: 54 (Connection reset by peer)]
skylan has joined #ocaml
two-face has joined #ocaml
<
Yurik>
two-face: hi
<
two-face>
hey Yurik
<
two-face>
Ramstein-man
<
Yurik>
two-face: yo! :-)
* Yurik
is listening for radio now :)
<
Yurik>
some shit is playing :)
* Yurik
is afk for hour or so
two-face has quit ["Client Exiting"]
pattern__ has joined #ocaml
pattern__ has quit ["..."]
pattern__ has joined #ocaml
skylan has quit [Read error: 54 (Connection reset by peer)]
skylan has joined #ocaml
polin8 has quit [Read error: 60 (Operation timed out)]
DocNero has joined #ocaml
DocNero has left #ocaml []
docelic has left #ocaml []
whee has joined #ocaml
lament has joined #ocaml
mrvn_ has joined #ocaml
lament has quit [Read error: 54 (Connection reset by peer)]
lament has joined #ocaml
mattam_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
mattam has quit [Read error: 110 (Connection timed out)]
xxd has quit ["EOF"]
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
__DL__ has quit [Read error: 54 (Connection reset by peer)]
gilbertdeb has joined #ocaml
__DL__ has joined #ocaml
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
rox has quit ["Client Exiting"]
lament has joined #ocaml