Delphi 2010: whatever happened to TRTTIConstructor?

Posted by conciliator on Stack Overflow See other posts from Stack Overflow or by conciliator
Published on 2010-03-23T14:11:16Z Indexed on 2010/03/23 14:13 UTC
Read the original article Hit count: 319

Filed under:
|
|

I've got two questions (of which at least one is regarding RTTI in D2010 and dynamic instancing)

  1. I was reading what appears to be the foils for a conference talk by Barry Kelly, and found on p. 13 something that looked really interesting: TRTTIConstructor.Invoke. In an adjacent bullet point, on finds "Dynamically construct instances without needing virtual constructors and metaclasses". This seems like a great feature (and exactly what I need, btw)! However, when I look in the D2010 docs (ms-help://embarcadero.rs2010/vcl/Rtti.html), I can't find it. Did it get revoked?
  2. What is the minimal way of creating an instance of a class, provided the class name is stored in a string?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about d2010