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,090 |
| Nodes: | 10 (1 / 9) |
| Uptime: | 59:49:52 |
| Calls: | 13,948 |
| Calls today: | 1 |
| Files: | 187,035 |
| D/L today: |
2,694 files (773M bytes) |
| Messages: | 2,461,296 |