in reply to Re^2: is there a way to ensure some code is the last thing that is run?
in thread is there a way to ensure some code is the last thing that is run?

Hi morgon,

My question is not how to fix this particular case but if there was a way to ensure something is run at the very end, in particular when using some unknown code that you do not want to fiddle with.

Ah, I see - in that case it was still an interesting exercise. If you don't have circular references, then I believe END blocks are the answer, whereas if you do have circular references, that's what I might attack first. (Update: See Re^6: is there a way to ensure some code is the last thing that is run?)

So, do I understand correctly you don't have a specific case where you're having problems, and this was a theoretical exercise?

Regards,
-- Hauke D

  • Comment on Re^3: is there a way to ensure some code is the last thing that is run? (updated)
  • Download Code