http://docs.julialang.org/en/release-0.4/stdlib/base/#Base.finalizer

On Wed, Dec 9, 2015 at 2:12 PM, Ben Ward <axolotlfan9...@gmail.com> wrote:

> Hi,
>
> I'm not sure of the answer, but is there an equivalent of the concept of a
> class destructor in Julia? I can imagine a situation where there is some
> type where a field is something like - for example - a file stream, and you
> want to make sure if that variable gets deleted by the gc, then the stream
> that is one of those variables get's closed.
>
> Best,
> Ben.
>
>

Reply via email to