No index for cycle ranges

bearophile bearophileHUGS at lycos.com
Thu Jun 2 11:47:03 PDT 2011


Andrej Mitrovic:

> Is this because cycle is an infinite range, and index might overflow?

The cause is different: cycle is a range, and they don't define an counter variable. With opApply sometimes you define the counter too. The compiler doesn't create a counter variable for free.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list