Is there a mechanism I have not yet found that would allow me to use a DEFINE to control whether hints are on or off in a particular unit? I am doing new work on a base form and am getting hints on unused private symbols. I realize that I could solve it manually, but prefer something which would take care of itself, so I don't allow those hints in the code pushed to SCM.

Is there a mechanism I have not yet found that would allow me to use a DEFINE to control whether hints are on or off in a particular unit? I am doing new work on a base form and am getting hints on unused private symbols. I realize that I could solve it manually, but prefer something which would take care of itself, so I don't allow those hints in the code pushed to SCM.

For clarity, I was hoping to something like this:
{$IFNDEF SHOWHINTS} // defined in the project
{$HINTS OFF}
{$ENDIF}

Comments

  1. Primož Gabrijelčič Yeah, it's a really useful feature. I only wish there was a way to do more than flags, such as a Level=10

    ReplyDelete
  2. Lars Fosdal You mean Level=11, I presume. ;)

    ReplyDelete

Post a Comment