I don't think there is any real reason why it is like that. It would
work equally as well if it created an instance of
DynamicInstanceProvider and returned that. It would be slightly more
efficient because the object wouldn't need to be created each time.
Are you just curious about the implementation or is this causing issues for you?
On Thu, Aug 2, 2012 at 11:14 PM, Bill Tutt wrote:
> Was there any particular reason for having create_instance_provider always
> return the non-instantiated DynamicInstanceProvider?
> Clearly the binder needs to support instantiating providers that aren't
> instances, but I can't quite follow why you wouldn't want to pre-instantiate
> the provider.
>
> Does it have something to do with supporting the LazyBinding (i.e. more tool
> oriented usages)
>
> Thanks,
> Bill
>
--