Daniel Murphy:
void fun(int[] a)
{
foreach_reverse(i, 0...a.length)
{
}
}
Better (it's a workaround for a D design flaw that we're unwilling to fix):
foreach_reverse(immutable i, 0...a.length) Bye, bearophile
bearophile via Digitalmars-d Fri, 21 Nov 2014 01:01:16 -0800
Daniel Murphy:
void fun(int[] a)
{
foreach_reverse(i, 0...a.length)
{
}
}
Better (it's a workaround for a D design flaw that we're unwilling to fix):
foreach_reverse(immutable i, 0...a.length) Bye, bearophile