<mfp>
joking, and not really the case in this extension
<mfp>
but true for quite a few others
rog1 has joined #ocaml
asmanur has joined #ocaml
rog1 has left #ocaml []
mikezackles has joined #ocaml
seafood has joined #ocaml
jonafan_ has joined #ocaml
Associat0r has joined #ocaml
jonafan has quit [Read error: 110 (Connection timed out)]
RobertFischer has joined #ocaml
RobertFischer has left #ocaml []
seafood has quit []
keisukefukuda has joined #ocaml
keisukefukuda has left #ocaml []
marmotine has joined #ocaml
Proteus_ has joined #ocaml
Proteus has quit [Read error: 104 (Connection reset by peer)]
tvn1981a has joined #ocaml
<tvn1981a>
at the end of a try block, should I have a ; ? e.g., try (statement1; statement2; statement3 ) with _ -> (statment4 ; statment5) <= should I have ; at the end of statment3 and statement5 ?
<mfp>
it's not needed
<mfp>
you can drop the parentheses too
<tvn1981a>
alright
<Asmadeus>
Yeah, as for the parentheses for matching cases, try ... with _ -> statement4; statement5 will only do statement5 if you get an exception. If you want statement5 to be run anyway you'll need to do (try .. with _ -> statement4); statement5 (just like match .. with)
<tvn1981a>
Asmadeus: I don't understand , I get exception in the try, then both statments4 and 5 will run ?
Linktim has joined #ocaml
Associ8or has joined #ocaml
ulfdoz has quit [clarke.freenode.net irc.freenode.net]
tvn1981a has quit [clarke.freenode.net irc.freenode.net]
Associat0r has quit [clarke.freenode.net irc.freenode.net]
mikezackles has quit [clarke.freenode.net irc.freenode.net]
coucou747 has quit [clarke.freenode.net irc.freenode.net]
Amorphous has quit [clarke.freenode.net irc.freenode.net]
Jeff_123 has quit [clarke.freenode.net irc.freenode.net]
jdev has quit [clarke.freenode.net irc.freenode.net]
mfp has quit [clarke.freenode.net irc.freenode.net]
hcarty has quit [clarke.freenode.net irc.freenode.net]
tvn1981a has joined #ocaml
mikezackles has joined #ocaml
coucou747 has joined #ocaml
Amorphous has joined #ocaml
Jeff_123 has joined #ocaml
ulfdoz has joined #ocaml
jdev has joined #ocaml
mfp has joined #ocaml
hcarty has joined #ocaml
tvn1981a has quit ["ChatZilla 0.9.83 [Firefox 3.0.1/2008070206]"]
Linktim_ has joined #ocaml
pango_ has quit [Remote closed the connection]
Linktim has quit [Read error: 113 (No route to host)]
jlouis has quit [Read error: 104 (Connection reset by peer)]
jlouis has joined #ocaml
pango_- has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_- is now known as pango_
marmotine has quit ["mv marmotine Laurie"]
marmotine has joined #ocaml
tomh has joined #ocaml
munga has quit [Read error: 110 (Connection timed out)]
mishok13 has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
mishok13 has quit [Read error: 110 (Connection timed out)]
mishok13 has joined #ocaml
Axioplase_ has quit [Remote closed the connection]
vixey has quit [Client Quit]
vixey has joined #ocaml
marmotine has quit ["mv marmotine Laurie"]
rwmjones has quit [Read error: 104 (Connection reset by peer)]
rwmjones has joined #ocaml
ygrek has quit [Remote closed the connection]
TypedLambda has joined #ocaml
Anarchos has joined #ocaml
<Anarchos>
how can i prevent a value to be garbage-collected ?
<vixey>
Have a reference to it
Anarchos has quit [Read error: 113 (No route to host)]
Anarchos has joined #ocaml
* rwmjones
thought all the students were on summer holidays at the moment
asmanur has quit [Remote closed the connection]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
Linktim_ has quit ["Quitte"]
<Anarchos>
how to prevent a value to be garbage collected ?
<jlouis>
Have a reference to it
<Anarchos>
my ocaml object keeps track of a C++ object which also keeps track of the ocaml object.... Kind of tricky with the garbage collector which *moves* value
<Anarchos>
sorry, i want my value not to be moved ...
Oatschool has joined #ocaml
jeddhaberstro has joined #ocaml
GustNG has quit [Read error: 104 (Connection reset by peer)]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]