title: Enable Delphi XE RTTI only for some classes
body: <p>I'm trying to have RTTI enabled only for a subset of my classes.</p>
  
  <p>The reason is that for those classes for which I want RTTI, I want RTTI on public methods too, but if that is enabled project-wide, then all public methods from all classes get into the final executable.
  This basically turns off the smart-linking, as the compiler considers that every public method could be called at runtime, and thus ends up compiling pretty much everything and the kitchen sink into the executable...</p>
  
  <p>I've tried several things:</p>
  
  <ul>
  <li>Turning off RTTI at the project level with <code>{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}</code> and then re-enabling it for the relevant units results in crashes at compile time (an AV somewhere in the compiler) on the $RTTI directive.</li>
  <li>Turning off RTTI at the project level and then enabling it class-by-class compiles, but at runtime it results in an unqualified AV deep in "Rtti.pas" when attempting to access the RTII for the exposed classes</li>
  <li>Controling RTTI via $RTTI directives embedded in the ".inc" all units use results in random AV at compile time (always at the line of the $RTTI directive, but not always for the same unit).</li>
  </ul>
  
  <p>Any other ideas?</p>