2 ms·
> How? Everything produced by the preprocessor is available at runtime as much as anything else. You can't instantiate a generic with new types at runtime usin
by pcwalton 13y ago
> How? Everything produced by the preprocessor is available at runtime as much as anything else.
You can't instantiate a generic with new types at runtime using the reflection facilities, like you can with other objects.
> With what's being described here, you'll only be able to instantiate the generics for a given data type within the package that declares that data type, as it involves adding methods.
That's so limited as to be almost useless. It prevents me writing a hash table library, publishing it, and then you linking to that library and using your Widget type as a key.