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

Override functions / methods #2

Open
tshort opened this issue Dec 12, 2017 · 0 comments
Open

Override functions / methods #2

tshort opened this issue Dec 12, 2017 · 0 comments

Comments

@tshort
Copy link
Owner

tshort commented Dec 12, 2017

It'd be nice to override methods and functions. For example, I've been adding functionality over the last week, but it's running less code, because I'm pushing deeper into call trees.

A main culprit right now is throw. If that could be replaced with something simpler, more code would run. (String code doesn't work very well right now.)

You can already do this for some cases. If you "precompile" a method into a CodeCtx, codegen! will use that method when called.

It might be nice to have more general overrides. For example, I might want to overload all of the throw methods.

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