Skip to content

Conversation

@rudi-c
Copy link
Contributor

@rudi-c rudi-c commented Aug 6, 2015

Make them static functions on the type that the visit function is associated to whenever possible. Makes it more consistent and less likely to forget to update the visit function if we change the type's fields.

rudi-c added 3 commits August 6, 2015 13:21
This serves two purposes.
1) Improve naming consistency (follow the format TYPENAME::gcHandler)
2) In the source file, the visit function declaration is closer to the
   fields of the objects. If a field is added, hopefully it will be
   easier to remember to update the GC visit function.
kmod added a commit that referenced this pull request Aug 7, 2015
Refactor location and names of gc visit functions.
@kmod kmod merged commit 0f4036a into pyston:master Aug 7, 2015
@kmod
Copy link
Collaborator

kmod commented Aug 7, 2015

cool :) yeah those had gotten pretty inconsistent.

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.

2 participants