-
Content Count
3 -
Joined
-
Last visited
Posts posted by Wosi
-
-
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 😉
- 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:
QuoteBeside 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.
OmniPascal 0.17.0 released
in I made this
Posted · Edited by Wosi
I've just released the next version of OmniPascal. It's coming with support for the inherited keyword, type helpers and inline variables.
http://blog.omnipascal.com/omnipascal-0-17-0-inherited-keyword-type-helpers-and-inline-variables/