<p>Am 20.09.2014 01:52 schrieb "Hans-Peter Diettrich" <<a href="mailto:DrDiettrich1@aol.com">DrDiettrich1@aol.com</a>>:<br>
><br>
> Boian Mitov schrieb:<br>
><br>
>> On Fri, 19 Sep 2014, Adriaan van Os wrote:<br>
>><br>
>>>>><br>
>> Your remarks seem to imply that you think RTTI can be used to inspect any aspect of an object.<br>
>> It was/is not meant for that.<br>
>> <<<<br>
>><br>
>> Quite incorrect. All languages with modern RTTI allow for full object inspection, and that includes Delphi 2010 and higher, C#, and even VB has it.<br>
><br>
><br>
> It's up to the coder to make all properties etc. published, when he *intends* to ever use RTTI on them. That't the way to tell the compiler what to do.<br>
><br>
> Inside a program there exists no distinct "brave object inspector" and "unauthorized object garbler" - both can be implemented by using RTTI. If you don't like safe types and other restrictions, which exist in Pascal for good reasons, then choose any unsafe language to implement whatever mess you like :-]</p>
<p>The extended RTTI introduced with Delphi 2010 allows you to even query private fields if the class developer decided to enable data generation for that.</p>
<p>Regards,<br>
Sven</p>