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

Fix class definitions #50

Open
chuck1 opened this issue Feb 24, 2018 · 2 comments
Open

Fix class definitions #50

chuck1 opened this issue Feb 24, 2018 · 2 comments

Comments

@chuck1
Copy link
Owner

chuck1 commented Feb 24, 2018

Currently function attributes of class objects are not bound.

Current method:
Class source code is used to make my FunctionType which is then passed to my build_class method. The build class method executes the class source and recovers the locals. It then constructs new class source code using those locals.

Ideas:
Temporarily have my make_function methof return regular function and see it that works, implying that my build_class method works.

Try deriving from types.FunctionType for functions or wrapping my FunctionType in a regular function type.

@chuck1
Copy link
Owner Author

chuck1 commented Feb 24, 2018

Try types.new_class

@chuck1
Copy link
Owner Author

chuck1 commented Feb 24, 2018

Experiment with creating a global function and assigning it to a class to create a class function.

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

No branches or pull requests

1 participant