Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalizers #92

Closed
gaborcsardi opened this issue Aug 20, 2016 · 2 comments

Comments

@gaborcsardi
Copy link
Member

commented Aug 20, 2016

I know I can use reg.finalizer, in initialize or on the object, but what do you think about making finalizers more explicit, i.e. having a special finalize method?

It should not be too hard with reg.finalizer. We just check if there is a finalize method at object creation, and if there is, we call reg.finalizer on it.

@wch

This comment has been minimized.

Copy link
Member

commented Aug 21, 2016

Sounds like a good idea to me!

@gaborcsardi

This comment has been minimized.

Copy link
Member Author

commented Aug 21, 2016

OK, I'll put together a PR.

@gaborcsardi gaborcsardi changed the title destructor Finalizers Aug 22, 2016

@wch wch closed this in fa7dd31 Aug 22, 2016

wch added a commit that referenced this issue Aug 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.