Notes IV

Matti Niemenmaa see_signature at for.real.address
Thu Jan 24 10:00:42 PST 2008


Janice Caron wrote:
> On Jan 24, 2008 1:52 PM, Jarrett Billingsley <kb3ctd2 at yahoo.com> wrote:
>> The problem with the fixed size stuff is, well,
>> for example:
>>
>> for(uint i = 0; i < array.length; i++)
> 
> Not a problem for D!
> 
>     foreach(element;array)

Until you want to do more complex iteration.

for (size_t i = array.length; i-- > 0;) {
	do_stuff();
	if (some_special_case)
		i += some_special_value;
}

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi



More information about the Digitalmars-d mailing list