[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
      DIRECTIVE:  {$B.}

      DEFAULT STATE:  B-

      DIRECTIVE RANGE:  Local

      COMMENTS:   The function of this directive is to tell the compiler
                  to use or not to use short-circuit evaluation of
                  boolean statements.

                  If (Answer = 'Y') and (NumItems < 34) then ...

                  In the default state, {$B-}, short-circuit evaluation
                  takes place.  In the above example, if the statement
                  (Answer = 'Y') is false then the entire statement is
                  false and the second statement, (NumItems < 34) will
                  never be evaluated.
                  In the {$B+} state, the entire expression will be
                  evaluated and then found to be true or false.

See Also: {$D±} {$F±} {$I±} {$L±} {$N±} {$R±} {$S±} {$T±}
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson