On Friday, 21 August 2015 at 05:24:52 UTC, BBasile wrote:
On Friday, 21 August 2015 at 05:06:47 UTC, Walter Bright wrote:
This function:
http://dlang.org/phobos/object.html#.Object.factory
enables a program to instantiate any class defined in the
program. To make it work, though, every class in the program
has to have a TypeInfo generated for it:
...
Other alternatives would be a pragma or an attribute to disable
TypeInfo generation.
@NoTI.
1. "Since it is compiled in the {$M+} state, the compiler
generates RTTI (Run-Time Type Information) for it and all classes
that descend from it."
http://freepascal.org/docs-html/rtl/classes/tpersistent.html
2. "Published properties are included in RTTI, public properties
aren't"
http://stackoverflow.com/questions/3157648/whats-the-difference-between-public-and-published-class-members-in-delphi