<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 27.10.2015 12:24, Mark Morgan Lloyd
      wrote:<br>
    </div>
    <blockquote cite="mid:n0nmtt$g2h$1@pye-srv-01.telemetry.co.uk"
      type="cite">Up to and including 2.6.4, this works:
      <br>
      <br>
              TRoundRobin= CLASS(TObject)
      <br>
      ..
      <br>
                           PUBLIC
      <br>
      ..
      <br>
      (*$IFDEF HAS_TRUE YIELD *)
      <br>
                             PROPERTY HasTrueYield: BOOLEAN DEFAULT
      TRUE;
      <br>
      (*$ELSE         *)
      <br>
                             PROPERTY HasTrueYield: BOOLEAN DEFAULT
      FALSE;
      <br>
      (*$ENDIF        *)
      <br>
      ..
      <br>
                           END;
      <br>
      <br>
      However using 3.0.0 rc1 I get
      <br>
      <br>
      roundrobin.pas(80,55) Fatal: Syntax error, "READ" expected but
      "identifier DEFAULT" found
      <br>
      <br>
      It looks as though this was coded for a facility that wasn't
      actually used, but that the intention was to convert a
      compile-time conditional into something that could be incorporated
      into an ordinary boolean expression.
      <br>
      <br>
      What is the correct syntax, and how far back is FPC compatible
      with it?
      <br>
      <br>
    </blockquote>
    <br>
    IMO<br>
    <b>                       PROPERTY HasTrueYield DEFAULT TRUE;
    </b><b><br>
    </b><b>
    </b><br>
    Ondrej<br>
  </body>
</html>