Negative index for arrays

Muta komuta at gmail.com
Wed Mar 22 02:09:32 PST 2006


I see that this is used in Python's strings, to get a char from the end of
the string. Would there be any drawback in implementing the same thing in
D's arrays ? Something like :
array[-x] = array[array.length - x]




More information about the Digitalmars-d mailing list