July 03, 2004 constructing via typeid | ||||
---|---|---|---|---|
| ||||
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 Re: constructing via typeid | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | I see your point. It might be possible for 2.0. |
Copyright © 1999-2021 by the D Language Foundation