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

Add support for stack allocation of injectables #10

Open
HampusMat opened this issue Aug 2, 2023 · 0 comments
Open

Add support for stack allocation of injectables #10

HampusMat opened this issue Aug 2, 2023 · 0 comments
Labels
feature A feature request help wanted Extra attention is needed

Comments

@HampusMat
Copy link
Owner

HampusMat commented Aug 2, 2023

Support for stack allocation of Injectables could probably be implemented.

Stack allocation is to be possible if the interface is a concrete type.

This will require

  • Container functions like get to be able to return either a heap allocated value (like Box) or a stack allocated value.
  • The generated resolve method of Injectables to figure out whether dependencies should be used as heap or stack values
  • Very likely even more
@HampusMat HampusMat added feature A feature request help wanted Extra attention is needed labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant