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

Allow explicit block-passing to on_entry/on_exit #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

buffpojken
Copy link

Due to Rubymotion adding support WeakRef, and weakly refed callables, not being able to mark
a callback as weak introduces subtle bugs and memory leaks if user references for example a delegate-object within a block.

This allows a block to be marked as weak! and then passed as an argument.

@opyh
Copy link
Owner

opyh commented Jan 5, 2015

I managed to overlook this pull request, sorry for that! Very good idea, it's just missing a spec…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants