Syrette icon indicating copy to clipboard operation
Syrette copied to clipboard

Add support for stack allocation of injectables

Open HampusMat opened this issue 2 years ago • 0 comments

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 avatar Aug 02 '23 17:08 HampusMat