Implement component model's `alloc` function.
Implement component model's
allocfunction.