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

Attributes #222

Open
ArnaudBuchholz opened this issue Feb 2, 2018 · 0 comments
Open

Attributes #222

ArnaudBuchholz opened this issue Feb 2, 2018 · 0 comments
Assignees
Labels

Comments

@ArnaudBuchholz
Copy link
Owner

ArnaudBuchholz commented Feb 2, 2018

  • Create a base class for all attributes (gpf.Attributes.Attribute): a public method (alterPrototype) is used to allow class prototype altering: it receives the prototype, member name as well as the class definition.
  • Attributes are stored in the class definition: they are inherited (this implies class definition can be retrieved from the class)
  • Adding an attribute can be done 'one the fly' by a dedicated method
  • APIs are provided to get attributes for a class definition: a dictionary indexes them per members. Filtering is possible on base class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant