Re: Scope of compiler directives?

From: Robert Marquardt (robert_marquardt_at_gmx.de)
Date: 02/21/05


Date: Mon, 21 Feb 2005 06:57:17 +0100

Raptor wrote:

> Thought I'd try putting my compiler directives in the .DPR file. Seems to
> work, but raises a question about scope. The MemChk procedure in the code
> body is not called unless I redeclare the DEVELOPMENT bit after the Begin.
> What's the deal?

The scope is always local to the file.
Only directives set on the commandline of the compiler (aka set in the
project options) are available in all files.



Relevant Pages

  • Re: Local variables - quick question
    ... You can't use a variable which isn't in scope within ... being alive by the garbage collector. ... > iterator I only redeclare it? ... that within a nested block it is not possible to declare a local ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Local variables - quick question
    ... >> btw. ... Is there a way to read ahead variable scope? ... I asume that when I write another forloop with the same int i ... iterator I only redeclare it? ...
    (microsoft.public.dotnet.languages.csharp)

Loading