-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Add gclosure macro #338
Add gclosure macro #338
Conversation
Thanks, this looks really promising. I'll review it in detail later.
If you pass the object into the closure as a weak reference then for normal usage yes. However |
Which you implement differently in the |
2df4964
to
c0ba00a
Compare
Indeed, I thought I would use this macro there initially but it turned out to not be very practical to do it that way, since |
Is there a reason it is called |
It was |
See also #341 (comment) . My reasoning would've been the same for calling this one |
Let's keep this one as |
83ed78e
to
9ca2b8c
Compare
8e15324
to
dfc604a
Compare
dfc604a
to
65c036f
Compare
65c036f
to
3bfe33f
Compare
Fixes #19, probably also good enough for #23
I tried to copy the syntax of
clone!
as much as I could. This should be a convenient improvement onconnect_object
since this can take weak references on multiple objects in one call.