4 ms·
Where does VB infer types? If you don't specify types (which is usually enforced with "Option Explicit"), everything ends up with a Variant type, i.e. a union t
by ptx 7y ago
Where does VB infer types? If you don't specify types (which is usually enforced with "Option Explicit"), everything ends up with a Variant type, i.e. a union type that can contain a value of (almost) any actual type and will be implicitly converted on use.
- pushpop 7y agoAhh yes, I’d forgotten about the variant type. I loved “Option Explicit”. To the extent that it was almost always the first line I’d write for any new project, module and class.