construct

Construct component using args.

Constructs component using args, that are passed to function. The function will attempt to find at least one construct that can accept passed argument list. If it fails, compiler will produce error, with respective problems. The argument list can contain beside simple values, references to other components in locator. Arguments that are references to other components won't be type checked.

@safe
Z
construct
(
Z : InstanceFactoryAware!T
T
Args...
)
(,
auto ref Args args
)

Parameters

factory Z

the factory which will call constructor with passed arguments.

args Args

a list of arguments that will be passed to constructor.

Return Value

Type: Z

Z.

Meta