[University] Selective for Index

Quentin Ochem ochem at adacore.com
Thu Nov 20 00:16:58 CET 2014


Hello Omansys,

There's no easy way to do this in Ada 2012 at the moment. You could use 
an Ada 2012 generic iteration mechanism through a container, but I would 
assume this is more trouble that just writing the computation in the loop.

Best regards,

-- 
Quentin Ochem
Technical Account Manager

AdaCore
Tel: +33 (0)1 49 70 66 42
Cell: +33 (0)6 81 12 22 15
46 rue d'Amsterdam
75 009 Paris

Le 11/19/2014 3:30 PM, Osmanys Fuentes Lombá a écrit :
>
> Hello, I'm wondering if is possible define an index for a for loop that
> takes only selected values, for example: I want to do a bucle that loops
> only over the even values of an integer type.
>



More information about the University mailing list