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

Expand the Injection Pattern #45

Open
Mercerenies opened this issue Jun 28, 2018 · 0 comments
Open

Expand the Injection Pattern #45

Mercerenies opened this issue Jun 28, 2018 · 0 comments

Comments

@Mercerenies
Copy link
Owner

Mixins can already inject a public interface into another object.

someMixin inject: targetObject.

However, we see this pattern used in a lot of non-mixin scenarios, especially when injected variables into local scopes.

target := lexical caller.
newObject parent := target parent.
target parent := newObject.

Consider making an inject-like function that works for all objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant