pimmhogeling has quit [Read error: 110 (Connection timed out)]
avsm has joined #ocaml
avsm has quit [Remote closed the connection]
avsm has joined #ocaml
boscop has quit ["Gxis revido!"]
steve32 has joined #ocaml
avsm has quit ["Leaving."]
det has joined #ocaml
tmaeda is now known as tmaedaZ
<steve32>
can someone give me some advice on how to do looping over an array, should I just use the for construct or is there a functional way similar to map
<olegfink>
Array.map?
<steve32>
oh thanks
<Alpounet>
Array.{map,iter,iteri}
<steve32>
I have some #defines in a c program i am converting to Ocaml. If I want to replace these what is a suitable replacement? just a let in the file where they are needed
<steve32>
not sure how that works when you have multiple files being compiled
<det>
steve32, the easiest thing to do is to use ocamlbuild
_unK has quit [Remote closed the connection]
Drk-Sd has joined #ocaml
mrvn_ has joined #ocaml
mrvn has quit [Read error: 113 (No route to host)]
pad has joined #ocaml
tmaedaZ is now known as tmaeda
mbishop has quit [Remote closed the connection]
mbishop has joined #ocaml
maskd has quit ["leaving"]
tmaeda is now known as tmaedaZ
steve32 has quit ["This computer has gone to sleep"]
djanderson has quit []
Drk-Sd has quit [Client Quit]
Mr_Awesome has joined #ocaml
valross has joined #ocaml
thrasibule has joined #ocaml
yakischloba1 has joined #ocaml
jeddhaberstro has quit [Client Quit]
steve32 has joined #ocaml
<steve32>
When I try set a ref type in the interactive window it doesn't appear to be working
<steve32>
I do the following
<steve32>
let current_rand = ref 0;;
<steve32>
val current_rand : int ref = {contents = 0}
<steve32>
let current_rand = ref 0;;
<steve32>
val current_rand : int ref = {contents = 0}
<steve32>
let current_rand = ref 0;;
<steve32>
val current_rand : int ref = {contents = 0}
<steve32>
let current_rand = ref 0;;
<steve32>
and I am seeing val current_rand : int = 5
<steve32>
instead of
<steve32>
val current_rand : int ref = { contents = 0 }
<steve32>
any ideas why?
yakischloba has quit [Read error: 110 (Connection timed out)]
<steve32>
not this is when I am running the *caml-toplevel* in emacs. I don't have this problem in a terminal shell
<det>
# let a = ref 0;;
<det>
val a : int ref = {contents = 0}
<det>
# a := 1;;
<det>
- : unit = ()
<det>
# a;;
<det>
- : int ref = {contents = 1}
<det>
let doesn't update a reference, btw, := does
<steve32>
i restarted the *caml-toplevel*
<steve32>
I think I redefined ref by typing let ref a = 5;;
<steve32>
incorrectly first
<steve32>
thanks for your reply though
steve32 has quit ["Leaving"]
mutew has quit ["leaving"]
Amorphous has quit [Read error: 113 (No route to host)]
Amorphous has joined #ocaml
pad has quit [Remote closed the connection]
Submarine has joined #ocaml
ski_ has joined #ocaml
yakischloba1 has quit [Client Quit]
mbishop has quit [Remote closed the connection]
Mr_Awesome has quit ["Hilarity ensues."]
mbishop has joined #ocaml
Yoric has joined #ocaml
joewilliams is now known as joewilliams_away
avsm has joined #ocaml
avsm has quit ["Leaving."]
Yoric has quit []
fx_ has joined #ocaml
Submarine has quit [Connection timed out]
_zack has joined #ocaml
Narrenschiff has joined #ocaml
ikaros has joined #ocaml
Yoric has joined #ocaml
avsm has joined #ocaml
arturh has joined #ocaml
arturh has quit [Remote closed the connection]
boscop has joined #ocaml
avsm has quit ["Leaving."]
_zack has quit ["Leaving."]
valross has quit ["Ex-Chat"]
avsm has joined #ocaml
_zack has joined #ocaml
deavidsedice has quit [Client Quit]
_andre has joined #ocaml
derdon has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
ikaros has joined #ocaml
munga has joined #ocaml
tmaedaZ is now known as tmaeda
mrvn_ is now known as mrvn
munga has quit [Read error: 110 (Connection timed out)]
maskd has joined #ocaml
tmaeda is now known as tmaedaZ
_zack has quit ["Leaving."]
msteele_ has quit [Remote closed the connection]
_unK has joined #ocaml
ikaros has quit [Remote closed the connection]
msteele has joined #ocaml
pimmhogeling has joined #ocaml
_unK has quit [Read error: 104 (Connection reset by peer)]
_unK has joined #ocaml
_zack has joined #ocaml
_zack1 has joined #ocaml
_zack has quit [Remote closed the connection]
pimmhogeling has quit [Remote closed the connection]
pimmhogeling has joined #ocaml
Narrenschiff has quit []
Smerdyakov has joined #ocaml
Smerdyakov has quit [Client Quit]
tmaedaZ is now known as tmaeda
mutew has joined #ocaml
Paczesiowa has joined #ocaml
npouillard has quit ["leaving"]
<Paczesiowa>
hello, I'm looking for sources of pcl library (all I can find right now is some pdf slides), do any of you know where I can find it?