Talk:Delphi RTTI and C++Builder

From RAD Studio
Jump to: navigation, search

It would be nice to mention that besides FindType, TRttiContext.GetTypes() will also not return any C++ types. It's for the same reason: C++ types are not rooted.

Also would it be possible to change all the samples to illustrate non-newed TRttiContext. As in:

   TRttiContext context;
   context.FindType(...);

instead of

   TRttiContext* context = new TRttiContext();
   context->FindType(...);


TRttiContext is a light-weight record; so in typically usage it should not be newed and deleted.


Done in RAD-8480
Thanks
Vadimb 01:14, 2 May 2011 (PDT)