j__ has quit [Read error: 104 (Connection reset by peer)]
j__ has joined #ocaml
natv has quit [Read error: 60 (Operation timed out)]
_JusSx_ has quit ["leaving"]
<vincenz>
Hello, how does one use finalizers?
<vincenz>
More specifically... If I allocate a custom value in a c-extended lib, but this contains a class, how would I ensure the destructor call when the value is delete?
eyda|mon has joined #ocaml
Smerdyakov has quit [Client Quit]
Smerdyakov has joined #ocaml
Smerdyakov has quit [Client Quit]
Smerdyakov has joined #ocaml
Nutssh has joined #ocaml
j__ has quit [Read error: 60 (Operation timed out)]
j__ has joined #ocaml
j__ has quit [Read error: 104 (Connection reset by peer)]
j__ has joined #ocaml
monochrom has quit [Read error: 145 (Connection timed out)]
cmeme has quit [Remote closed the connection]
cmeme has joined #ocaml
cmeme has quit [Remote closed the connection]
monochrom has joined #ocaml
cmeme has joined #ocaml
ulfdoz has joined #ocaml
monochrom has quit ["me!"]
ulfdoz_ has quit [Read error: 60 (Operation timed out)]
cjohnson has quit ["Leaving"]
tautologico has joined #ocaml
j_n_ has joined #ocaml
j__ has quit [Read error: 113 (No route to host)]
j_n_ is now known as j_n
CosmicRay has joined #ocaml
CosmicRay has quit ["Client exiting"]
tautologico has quit []
i has joined #ocaml
i has quit [Nick collision from services.]
i has joined #ocaml
i has quit [Nick collision from services.]
Submarine_ has joined #ocaml
Snark has joined #ocaml
__DL__ has joined #ocaml
eyda|mon has left #ocaml []
Nutssh has quit [Read error: 110 (Connection timed out)]
Nutssh has joined #ocaml
Herrchen has joined #ocaml
Msandin has joined #ocaml
Msandin has quit [Read error: 54 (Connection reset by peer)]
vezenchio has joined #ocaml
mlh has joined #ocaml
cognominal has quit [Remote closed the connection]
cognominal has joined #ocaml
_JusSx_ has joined #ocaml
tintin has quit [Remote closed the connection]
<mflux>
vincenz, hmm.. I'm not quite sure what is the problem, isn't using custom blocks nicely documented?
<mflux>
however I'm not sure if calling finalizers is _guaranteed_ though, for instance in the end of the program
<mflux>
I am still wondering if its possible to make Dynloaded stuff appear in a toplevel loop I've linked into my program
<mflux>
hm, I propably could use Env.add_module
<mflux>
except Dynlink doesn't provide such values
smimou has joined #ocaml
shawn_ has joined #ocaml
cognominal has quit [Read error: 54 (Connection reset by peer)]
cognominal has joined #ocaml
_shawn has quit [Read error: 60 (Operation timed out)]
Snark has quit ["Leaving"]
Snark has joined #ocaml
cjohnson has joined #ocaml
spoofy has joined #ocaml
_JusSx_ has quit ["Lost terminal"]
spoofy has left #ocaml []
Gueben has joined #ocaml
Snark has quit ["Leaving"]
_JusSx_ has joined #ocaml
Snark has joined #ocaml
pango_ has joined #ocaml
pango has quit [Read error: 60 (Operation timed out)]
<vincenz>
mflux: well the issue is that I want to call the destructor of a C++ class I might put in the custom block
<mflux>
vincenz, hmm.. so then call?-)
<mflux>
either with delete or with explicit call to destructor
<mflux>
I take it you originally created the object with placement new?
<mflux>
or you could just have a custom block that is a struct which then points to the object..
<vincenz>
I haven't yet done it, but yes placement new or so
<vincenz>
basically I want to add hooks of ocaml to ftgl
<mflux>
so the destructor could be called in the finalizer with just foo.~Bar();
<vincenz>
there's no per object finalize tho
<vincenz>
is there
<Smerdyakov>
Good grief. What language has that, besides maybe some esoteric Smalltalky thing?
<Smerdyakov>
(Meaning per-object finalizers)
<vincenz>
So how would I ensure the destructor call on the embedded C++ object
<mflux>
vincenz, hmm.. custom_operations, 'finalize', doesn't it do just that?
<mflux>
(looking at manual032.html)
<vincenz>
Ah found it
<vincenz>
yeah :)
<vincenz>
Custom_tag
<vincenz>
:)
<mflux>
so that was what you were after in the beginning? I just sort of assumed you already knew all that :)
<vincenz>
well I have to run, but thx
<vincenz>
mflux: yip :)
monochrom has joined #ocaml
smimou has quit [Read error: 60 (Operation timed out)]
smimou has joined #ocaml
smimou has quit [Read error: 60 (Operation timed out)]
Submarine_ has quit ["Leaving"]
smimou has joined #ocaml
vezenchio has quit [""Under democracy one party always devotes its chief energies to trying to prove that the other party is unfit to rule—and bot]
vezenchio has joined #ocaml
vezenchio has quit [Remote closed the connection]
Snark has quit ["Leaving"]
tautologico has joined #ocaml
Herrchen has quit ["..."]
cognominal has quit [Read error: 54 (Connection reset by peer)]
cognominal has joined #ocaml
fck has joined #ocaml
<fck>
hello, i have a syntax Q, would anyone be willing to help? it's pretty simple i believe..