문제

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

도움이 되었습니까?

해결책

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

{$...} is a precompiler directive.

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

다른 팁

Think of the first one as a commented version (one that the compiler will ignore) of the second one.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top