<Gertm>
I get this error message when trying to use the input function on an in_obj_channel, Exception: Invalid_argument "input". What does it mean? I'm using the exact arguments specified in the documentation
<flux>
no idea, but perhaps you can give us a test case we could try
<flux>
string length is immutable, so you need to have a string of proper length before giving it to it
<flux>
Invalid_argument exceptions always refer to 'logic errors' such as this
<flux>
in general the style seems fine
<flux>
you don't need ;; at the end of the opens in the beginning, btw
<flux>
also, get_size_of_mail_nr is misindented :
<flux>
:)
derdon has joined #ocaml
ikaros has joined #ocaml
pimmhogeling has quit [Ping timeout: 256 seconds]
mfp has quit [Remote host closed the connection]
mfp has joined #ocaml
Drk-Sd has joined #ocaml
<Gertm>
ah yes, it is indeed
seafood has joined #ocaml
<Gertm>
thanks for the help flux
<flux>
gertm, btw, the test case could've been much reduced, by replacing all the rest of the functions with let _ = read_ioc (Netchannels.input_string "Hello") 1
<Gertm>
another thing learned! But I wanted feedback on the general style of my ocaml coding :) Still learning the right 'way' of doing stuff
Guest16853 has left #ocaml []
Drk-Sd has quit [Quit: {'EXIT', Drk-Sd, "bye"}]
<dark>
i would rather say 'right' way
<dark>
Gertm, ;; is only needed if it's not clear by the context that your expression has ended
<dark>
Gertm, this is considered bad style btw; if all enclose top-level expressions with a let _ = <expression>, they will have the same practical effect but then you can drop the ;; safely
seafood has quit [Ping timeout: 264 seconds]
boscop has joined #ocaml
Drk-Sd has joined #ocaml
Yoric has joined #ocaml
tmaedaZ is now known as tmaeda
<Gertm>
dark: adding ;; where not needed is considered bad style?
<Gertm>
I didn't quite understand your last sentence
tmaeda is now known as tmaedaZ
<dark>
yes. but, writing a program so that the ;; is necessary is bad style
_zack has joined #ocaml
<dark>
in general
<dark>
you can use it if you prefer, but if your program will not run without the ;;, I find it ugly at least ._.
maskd has quit [Ping timeout: 240 seconds]
<Gertm>
ah, that way
<Gertm>
yeah, I try to avoid the ;; as much as possible, hadn't noticed I left it in.
_zack has quit [Quit: Leaving.]
bzzbzz has joined #ocaml
lokydor has quit [Ping timeout: 252 seconds]
Tianon has quit [Ping timeout: 256 seconds]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
maskd has joined #ocaml
orbitz has quit [Read error: Connection reset by peer]
orbitz has joined #ocaml
pimmhogeling has joined #ocaml
pimmhogeling has quit [Ping timeout: 256 seconds]
TaXules has joined #ocaml
mutew has joined #ocaml
Drk-Sd has quit [Quit: {'EXIT', Drk-Sd, "bye"}]
Modius has joined #ocaml
avsm has left #ocaml []
munga has joined #ocaml
sshc has quit [Read error: Connection reset by peer]
sshc has joined #ocaml
execve has joined #ocaml
sYdRo has joined #ocaml
<sYdRo>
is there any italian that help me ? :(
_unK has joined #ocaml
mutew has quit [Ping timeout: 252 seconds]
Gooffy has quit [Quit: Leaving.]
ski_ has quit [Quit: Lost terminal]
ikaros has quit [Quit: Leave the magic to Houdini]
sysop_fb has joined #ocaml
sYdRo has left #ocaml []
joewilliams_away is now known as joewilliams
avsm has joined #ocaml
tmaedaZ is now known as tmaeda
pimmhogeling has joined #ocaml
dark has quit [Quit: Leaving]
dark has joined #ocaml
travisbrady has joined #ocaml
yakischloba has joined #ocaml
ski_ has joined #ocaml
fraggle__ has joined #ocaml
fraggle__ has quit [Client Quit]
fraggle_ has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
fraggle__ has joined #ocaml
yakischloba has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
fraggle__ has quit [Client Quit]
fraggle_ has joined #ocaml
arturh has quit [Quit: Leaving]
sysop_fb has quit []
naufraghi has left #ocaml []
yakischloba has joined #ocaml
srcerer has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Yoric]
Alpounet has quit [Quit: ``Do what you think you can't do.'']
munga has quit [Ping timeout: 245 seconds]
srcerer has joined #ocaml
srcerer has quit [Read error: Connection reset by peer]
dark has quit [Ping timeout: 246 seconds]
execve has quit [Ping timeout: 260 seconds]
srcerer has joined #ocaml
srcerer has quit [Read error: Connection reset by peer]
pad has joined #ocaml
pimmhogeling has quit [Ping timeout: 272 seconds]
Submarine has joined #ocaml
ikaros has joined #ocaml
pimmhogeling has joined #ocaml
itewsh has joined #ocaml
smimou has quit [Quit: bli]
<Camarade_Tux>
gildor: do you build debian packages outside of X? (asking because ocamlnet-gtk2 needs X and that's *deeply* annoying me)
srcerer has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Alpounet has joined #ocaml
Associat0r has joined #ocaml
<gildor>
Camarade_Tux: we don't run an X server in our buildd
<gildor>
Camarade_Tux: if it is what you ask
<Camarade_Tux>
gildor: you answered my question
<Camarade_Tux>
I worded my sentence badly: ocamlnet-gtk2's configure needs X to be running
Anarchos has joined #ocaml
joewilliams is now known as joewilliams_away
yakischloba has quit [Quit: Leaving.]
<Camarade_Tux>
gildor: btw: on the forge, what do you use for git support? (I have a few small projects I'd like to put on my own git)
seafood has joined #ocaml
Alpounet has quit [Remote host closed the connection]
pimmhogeling has quit [Ping timeout: 272 seconds]
munga has joined #ocaml
yakischloba has joined #ocaml
joewilliams_away is now known as joewilliams
seafood has quit [Quit: seafood]
seafood has joined #ocaml
<gildor>
Camarade_Tux: for now git repository is created by hand, and you can browse git through gitweb
<gildor>
Camarade_Tux: when we will move to FusionForge there will be a minimal support directly in the forge
tmaeda is now known as tmaedaZ
smimou has joined #ocaml
smimou has quit [Changing host]
smimou has joined #ocaml
Drk-Sd has joined #ocaml
itewsh has quit [Ping timeout: 240 seconds]
itewsh has joined #ocaml
execve has joined #ocaml
execve has quit [Client Quit]
_zack has joined #ocaml
_zack has quit [Quit: Leaving.]
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]