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,089 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 153:46:10 |
| Calls: | 13,921 |
| Calls today: | 2 |
| Files: | 187,021 |
| D/L today: |
3,747 files (943M bytes) |
| Messages: | 2,457,162 |