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
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.
Ada.Text_IO.Put_Line (Real'Image ([ for i in reverse 0 .. data'Last -
1 => data(i) ]'Reduce("-", data(data'Last))));
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:06:01 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,528 |