Jump to content

Wosi

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by Wosi


  1. 12 hours ago, Uwe Raabe said:

    Well, this works:

    
    begin
      var I := 20;
      const J = I-1;
      Writeln('I=', I);
      Writeln('J=', J);
    end;

     

    Great! What's about this:

    const RESTClient = TRESTClient.Create(Nil); 

    Does it work?

    10 hours ago, Dave Nottage said:

    I'm hoping DelphiAST is updated to handle it soon after Rio is released (or beforehand) :-)

    I'm having a good feeling about it 😉

    https://github.com/RomanYankovsky/DelphiAST/pull/271

    • Like 2

  2. 7 minutes ago, Davor Slutej said:

    One question, inline constants - can they be assigned by function calls or need to be compile time evaluted? If only the latter then F.

    Marco says in his blog post:

    Quote

    Beside variables, you can now also inline a constant value declaration

    So I think constant value expressions are evaluated at compile time. But I would love to see inline constants initialized with dynamic values just like in TypeScript.

×