Late bound COM Reflection #1173
Labels
enhancement
Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.
feature-inspections
Milestone
Now that we have Reflection for early-bound references, we need to consider reflecting the late bound references.
Well, presumably developers are late binding for a reason. It's worthy of a code inspection, at the very least.
But you might choose to late bind because the library might not exist on all PCs, or the library might vary by PC or user or some other value. You might write VBA that late binds to ADO, because you don't know which version is available on the PC, or you might bind to a particular version of MSXML, depending on the functionality/behaviour you want.
As @ckuhn203 points out, the edge case is presumably the use of a constant, variable or literal expression. Those could be hard to evaluate at design time.
If we do choose to resolve the late bound references, then I think we should have Settings that enable/configure the behavior, and annotations that allow a developer to exlude individual CreateObject statements from reflection.
The text was updated successfully, but these errors were encountered: