July 03, 2004
If I have something like this:

//////////
class A {}

void main ()
{
    foo( typeid(A) );
}

void foo ( TypeInfoClass tic )
{
    Object o = new tic.ctor;
}
//////////

Well, I know that doesn't work, but hopefully you get the idea. Is there a way to do it? If not, will there be?

BTW, the real code is not as simple as the one I showed, so I can't use a template for this.

-----------------------
Carlos Santander Bernal


July 04, 2004
I see your point. It might be possible for 2.0.