I am using julia-0.5.0 and IJulia 1.3.2

When I close a Notebook through File-> Close and Halt or through 
Kernel->Restart, my object finalizers don't seem to be run. A min-script to 
reproduce this would be:

  type MyType end
  x=MyType()
  finalizer(x,x->open(f->println(f,"Finalizer did 
run"),"finaltest.txt","w"))

This should write a file when julia is exited (it does so when executing 
from the REPL and then quit()) However, the finalizer does not seem to be 
run when closing the notebook. Can someone reproduce this? Is it a bug or 
am I doing something wrong?

Fabian

Reply via email to