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,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 152:49:25 |
Calls: | 13,691 |
Calls today: | 1 |
Files: | 186,936 |
D/L today: |
2,525 files (731M bytes) |
Messages: | 2,411,051 |