I\'d like to set the length of a dynamic array, as suggested in this post. I have two classes TMyClass and the related TChildClass defined as
I\'ve got two questions (of which at least one is regarding RTTI in D2010 and dynamic instancing) I was reading what appears to be the foils for a conference talk by Barry Kelly, and found on p. 13
This is heavily simplified for the sake of the question. Say I have a hierarchy: struct Base { virtual int precision() const = 0;
I\'m trying to use RTTI to add an event handler to a control, that may already have an event handler set. The code looks something like this:
Say B and C are derived from A. I want to be able to test whether any two instances of classes derived from A are instances of the same class, that is, whether A* foo and A* bar both point to B instan
I have a base class which has two child classes derived from it. class A {}; class B : public A {}; class C : public A {};
As I understand it, what makes dynamic cast different from a static cast is its use of RTTI, and the fact that it fails if the dynamic type of a variable- when casting from base to derived- does not f
I am writing a class to handle security in my executable (checking serials, trial date check etc). After I compile the executable (even in Release build, with all debug and RTTI generation turned off)
I have a problem setting null to a variant fie开发者_运维百科ld using rtti. Suppose I have class like this:
Considering such an enumeration : type TTypeOfData = ( [XmlName(\'ABC\')] todABC, [XmlName(\'DEF\')] todDEF,