First Impressions

Sean Kelly sean at f4.ca
Sat Sep 30 07:54:34 PDT 2006


Thomas Kuehne wrote:
> 
> As it seems, the original code depends on the undocumented index behavior
> with regards to silent transcoding in foreach.

The wording could be more explicit, but I think the current 
documentation implies the actual behavior:

"The index  must be of int or uint type, it cannot be inout, and it is 
set to be the index of the array element."

The docs should probably also be revised to allow for 64-bit indices, 
where the index would be long or ulong.  Something along the lines of:

"The index must be an integer type of size equal to size_t.sizeof. . ."


Sean



More information about the Digitalmars-d mailing list