March 24, 2008 Re: Range Type | ||||
|---|---|---|---|---|
| ||||
This may be stating the obvious, but if we had built-in range types, Stephen's slicing problem could be solved with
int..int f(const(char)[] s)
{
return X..Y;
}
and at the call site
s = s[f(s)];
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply