RTTI - even bog standard RTTI, never mind extended - _is_ "on" by default for any class that ultimately derives from an ancestor class compiled with $M+. That includes TPersistent and thus TForm and any controls etc. In a GUI app at least, there will be a significant number of classes in a project with RTTI enabled, irrespective of the project default.<div>
<br></div><div>And as you can see from the experiment I described, the impact of extended RTTI on such classes is highly significant and is imposed without being asked for. Hence opt-OUT rather than opt-IN, in the sense that your projects will be affected by the new feature without having asked for it.</div>
<div><br></div><div>Even more worrying is that apparent lack of effect of the $RTTI directive.</div><div><br></div><div>Not only is it not opt-in, but it seems that the opt-out mechanisms don't work [properly?] either.</div>
<div><br></div><div><div><br><br><div class="gmail_quote">On 17 January 2012 11:44, Peter Hyde <span dir="ltr"><<a href="mailto:peter@webcentre.co.nz">peter@webcentre.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Joylon:<br>
<div class="im"><br>
> Where is this clear "default is false" indication in the docs ?<br>
<br>
</div>Under the Code Generation settings in help.<br>
<div class="im"><br>
> RTTI generation has always been "off" by default (as a project wide setting), unless a class<br>
> extends a type for which RTTI was previously enabled. But I can't find any reference to<br>
> _extended_ RTTI being disabled by default.<br>
<br>
</div>Forgive me, I do not recall mention of the word _extended_ (with or without emphasis) in your<br>
original post (below). I got the impression you believed RTTI per se is turned on by default.<br>
<br>
> It's not what it's stored as, it's simply how much of it there is.<br>
> iirc where-as in the past RTTI was generated and stored for only<br>
> published properties, RTTI is now generated and stored for pretty much<br>
> *everything* (by default). If you aren't using the RTTI I believe you<br>
> can turn this behaviour off, or fine tune it to an extent, but I don't<br>
> recall off-hand the particular incantations to achieve this<br>
<div class="im HOEnZb"><br>
> imho this sort of change should be opt-IN, not opt-OUT.<br>
<br>
</div><div class="HOEnZb"><div class="h5">cheers,<br>
peter<br>
<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br>
</div></div></blockquote></div><br></div></div>