Narrow string is not a random access range

mist none at none.none
Tue Oct 23 08:36:22 PDT 2012


Was thinking on this topic after seeing this: 
http://stackoverflow.com/questions/13014999/cannot-slice-taker-from-std-range-in-d
Still can't understand rationale here. Why native slicing / 
random access is allowed for narrow strings, but trait explicitly 
negates this?


More information about the Digitalmars-d-learn mailing list