delphicompiler-directives

What is the purpose of {.$DEFINE VAR} instead of {$DEFINE VAR} in Delphi


What is the difference in Delphi between using {.$DEFINE VAR} and {$DEFINE VAR} compiler directives?


Solution

  • The code originally had a {$DEFINE VAR} directive in it, then a period was added to turn the directive into a plain ordinary comment without removing the directive, presumably so it can be restored at a later time.

    {$...} is a compiler directive.

    {...} that does not start with {$ is a comment.