but the compiler won't accept "reverse" in the next-to-last line, evenARM 2022/4.5.10(6/5):
though you can use it in a normal loop. The other lines compile and run without any problems.
but the compiler won't accept "reverse" in the next-to-last line, even though you can use it in a normal loop. The other lines compile and run without any problems.ARM 2022/4.5.10(6/5):The iterated_element_association of a value_sequence shall not have a key_expression, nor shall it have a loop_parameter_specification that
Ada.Text_IO.Put_Line (Real'Image ([ for i in reverse 0 .. data'Last -
1 => data(i) ]'Reduce("-", data(data'Last))));
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,030 |
Nodes: | 10 (1 / 9) |
Uptime: | 23:05:50 |
Calls: | 13,346 |
Calls today: | 3 |
Files: | 186,574 |
D/L today: |
1,694 files (458M bytes) |
Messages: | 3,357,690 |