We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://blog.adacore.com/ada-202x-support-in-gnat
e.g. replace
for E of Some_Array loop if E /= 0 then Put_Line (E'Image); end if; end loop;
by
for E of Some_Array when E /= 0 loop Put_Line (E'Image); end loop;
The text was updated successfully, but these errors were encountered:
Replace
for I in 1..N loop Append (V, I*2); end loop;
V = [for I in 1..N => I * 2];
Sorry, something went wrong.
declare sum : Integer := $S_Initial; begin for E of $S_Container loop sum := sum + $S_Add; end loop; $M_Stmts; end;
declare sum : Integer := [for E of $S_Container => $S_Add].Reduce ("+", $S_Initial); begin $M_Stmts; end;
And we even might check whether we can add the constant keyword to the declaration of sum
sum
No branches or pull requests
See https://blog.adacore.com/ada-202x-support-in-gnat
e.g. replace
by
The text was updated successfully, but these errors were encountered: