vezenchio has quit ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes ^_^"]
smkl has quit [Read error: 110 (Connection timed out)]
yauz has quit [Read error: 113 (No route to host)]
skylan has quit [Remote closed the connection]
skylan has joined #ocaml
yauz has joined #ocaml
smkl has joined #ocaml
GreyLensman has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
det has quit [Read error: 60 (Operation timed out)]
smkl_ has joined #ocaml
ne1 has quit ["To understand recursion, you must first understand recursion."]
CosmicRay has joined #ocaml
CosmicRay has quit ["Client exiting"]
smkl_ has quit [Read error: 110 (Connection timed out)]
GreyLensman has quit ["Leaving"]
Xolution has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
cjohnson has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
kinners has joined #ocaml
smkl_ has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
Xolution has quit [Read error: 104 (Connection reset by peer)]
debona|r has quit [Read error: 54 (Connection reset by peer)]
debona|r has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
smkl_ has quit [Read error: 110 (Connection timed out)]
kinners has quit [Read error: 110 (Connection timed out)]
smkl has joined #ocaml
smimou has joined #ocaml
bk_ has quit [Read error: 54 (Connection reset by peer)]
bk_ has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
smkl has joined #ocaml
vezenchio has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
smimou has quit ["?"]
smimou has joined #ocaml
smkl_ has joined #ocaml
vezenchio has quit ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes ^_^"]
det has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
smkl_ has quit [Read error: 110 (Connection timed out)]
bk_ has joined #ocaml
zigong__ has joined #ocaml
mattam_ is now known as mattam
jourdechance has joined #ocaml
smkl_ has joined #ocaml
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
not_me2_ has quit ["Lost terminal"]
monochrom has joined #ocaml
gl has joined #ocaml
cjohnson has joined #ocaml
gl has quit ["leaving"]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
gim has quit ["2.6.8"]
gim has joined #ocaml
maihem has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
smimou has quit ["?"]
smimou has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
bk_ has joined #ocaml
Herrchen has joined #ocaml
grirgz has joined #ocaml
<
grirgz>
does someone know how to detect a double click in a callback with lablgtk2 ?
Lemmih has quit [Read error: 104 (Connection reset by peer)]
vezenchio has joined #ocaml
Lemmih has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
zigong__ has quit ["Leaving"]
bk_ has joined #ocaml
smkl has joined #ocaml
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
* Smerdyakov
wonders how to make Format never output newlines unless asked explicitly.
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
smkl has quit [Read error: 110 (Connection timed out)]
mrsolo has quit [Connection timed out]
smkl has joined #ocaml
maihem has joined #ocaml
maihem has quit [Client Quit]
jason_ has joined #ocaml
<
jason_>
Hm, does anybody here know how to set the length of a string?
<
jason_>
Well, change its length?
<
mattam>
you don't set the length of a string
<
mattam>
you might want a buffer
<
jason_>
mattam: When I create it, I do.
<
Smerdyakov>
You can't change it once it's created.
<
mattam>
look at the Buffer moduler
<
jason_>
Hm, yeah, I know about Buffers.
<
jason_>
The problem is, I pass the string to a function that reads it in.
<
jason_>
And this function returns the number of characters read.
<
jason_>
If I use it at that point, the rest of the string is padded with \00, which I don't want.
<
mattam>
you could return a new string instead of modifying one in-place
<
jason_>
Right, that's what I was thinking I'd have to do.
<
jason_>
Just copy the contents up to the length read into a new string.
<
jason_>
Not the most efficient way imaginable.
<
mattam>
i would imagine there is a completely different way as efficient as you would like. Could you give more context ?
<
jason_>
Hm, I'd like to be able to read in the value, and set the length.
<
jason_>
Without doing a full copy
<
jason_>
It's a problem with the underlying read routine, using a string.
<
jason_>
I need to pass the length I want along with the string.
<
jason_>
Instead of using String.length.
smkl has quit [Read error: 110 (Connection timed out)]
smkl_ has joined #ocaml
<
jason_>
Lol, I got it to work this time.. But a bunch of weird crap started happening..
smimou has quit ["?"]