Fix for moveFront, moveBack, and moveAt

- I assume they are not properties, then changed to normal functions.
- Global .moveFront/Back uses front and back if member moveFront/back doesn't exist.
  Then, member aliases are just redundant.
This commit is contained in:
k-hara 2012-11-23 00:30:49 +09:00
parent 128aa9f8fc
commit 58a8ccf42e
2 changed files with 19 additions and 11 deletions

View file

@ -6479,7 +6479,6 @@ unittest
bool empty() { return i >= data.length; }
T front() { return data[i]; }
T front(real e) { return data[i] = cast(T) e; }
alias front moveFront;
}
void popFront() { ++i; }
}