<zubeen>
fun p -> let d = derivative p !vref in incr vref; d
<zubeen>
what does this statement mean?
<zubeen>
hello
zubeen has quit []
wuj has quit [Ping timeout: 265 seconds]
jpd has quit [Quit: This computer has gone to sleep]
walrus__ has joined #ocaml
valross has quit [Quit: Ex-Chat]
walrus__ has quit [Client Quit]
valross has joined #ocaml
ulfdoz has joined #ocaml
mjonsson has quit [Remote host closed the connection]
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
valross has quit [Quit: Ex-Chat]
ulfdoz has quit [Ping timeout: 260 seconds]
Yoric has joined #ocaml
ttamttam has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ygrek has joined #ocaml
coucou747 has joined #ocaml
jonafan has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Yoric]
rwmjones has joined #ocaml
yezariaely has joined #ocaml
Yoric has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
rwmjones has quit [Ping timeout: 260 seconds]
ftrvxmtrx has joined #ocaml
rwmjones has joined #ocaml
drk-sd has joined #ocaml
drk-sd has left #ocaml []
yezariaely has left #ocaml []
th5 has joined #ocaml
ikaros has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
_2x2l_ is now known as _2x2l
ygrek has quit [Ping timeout: 245 seconds]
_andre has joined #ocaml
bohanlon has quit [Quit: Back later!]
drk-sd has joined #ocaml
init1 has joined #ocaml
drk-sd has quit [Quit: bllblbl]
Amorphous has quit [Ping timeout: 255 seconds]
Amorphous has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 272 seconds]
boscop_ is now known as boscop
junis has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
Modius has quit [Quit: I'm big in Japan]
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Read error: Connection reset by peer]
Yoric_ has joined #ocaml
Yoric_ has quit [Read error: Connection reset by peer]
th5 has quit [Read error: Connection reset by peer]
iago has joined #ocaml
jpd has joined #ocaml
jpd has quit [Client Quit]
oriba has joined #ocaml
bohanlon has joined #ocaml
Yoric has joined #ocaml
ttamttam has left #ocaml []
pierreN has joined #ocaml
<pierreN>
hi
<pierreN>
i'm looking for a way to use mutable types (in my case queue) in a vector. is there a way to do such a thing please ?
<hcarty>
pierreN: Not sure I understand the question. You could initialize an array with queues as the values in the array.
stdDoubt has joined #ocaml
<stdDoubt>
should a module type signature be placed in the mli file or should always go to the ml file?
<pierreN>
yeah but according to caml doc : "if x is mutable, it is shared among all elements of the vector, and modifying x through one of the vector entries will modify all other entries at the same time. " So it is somehow useless to do that
<hcarty>
pierreN: That's only with Array.make
rwmjones has quit [Ping timeout: 260 seconds]
<hcarty>
pierreN: See Array.init
<hcarty>
pierreN: Creating a new Queue.t for each element, of course
<pierreN>
hcarty: i'm sorry but i'm using caml light
<hcarty>
pierreN: Ah, I'm not sure then - I've never used caml light. Does it not have an Array.init?
<hcarty>
pierreN: You could make the array, then replace each element with a fresh queue.
<hcarty>
stdDoubt: Generally the .mli, as it makes it easier to install/provide the .mli with the compiled library, without requiring the full source code
<hcarty>
stdDoubt: Both work, but the mli is the more common approach
<pierreN>
hcarty: thank you (gaah that was obvious)
<hcarty>
pierreN: You're welcome - I've run in to the same problem in the past :-)
<hcarty>
Using Array.make with a mutable value that is
jakedouglas has joined #ocaml
rwmjones has joined #ocaml
ccasin has joined #ocaml
munga has joined #ocaml
yezariaely has joined #ocaml
yezariaely has left #ocaml []
pierreN has quit [Quit: Page closed]
Snark_ has joined #ocaml
oriba has quit [Remote host closed the connection]