opSlice and foreach with ranges

Ali Çehreli acehreli at yahoo.com
Thu Feb 17 14:20:15 PST 2011


On 02/17/2011 01:49 PM, Jesse Phillips wrote:
> Ali �ehreli Wrote:
>
>> <quote>
>> ... if the iterated object offers the slice operator with no arguments
>> lst[], __c is initialized with lst[] instead of lst. This is in order to
>> allow "extracting" the iteration means out of a container without
>> requiring the container to define the three iteration primitives.
>> </quote>
>
> Yeah I don't think it is implemented, file a bug.

http://d.puremagic.com/issues/show_bug.cgi?id=5605

Thank you,
Ali


More information about the Digitalmars-d-learn mailing list