- `opSlice()` now forwards to `opSlice(size_t, size_t)`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-02 09:36:39 +02:00
parent 6372f2d8c7
commit c886ba184b
1 changed files with 1 additions and 10 deletions

View File

@ -742,16 +742,7 @@ if(isSector!(SectorType)())
public T[] opSlice()
{
T[] buff;
foreach(SectorType sector; this.sectors)
{
buff ~= sector[];
}
// Trim to "fake" size
buff.length = this.curSize;
return buff;
return this[0..this.length];
}
public T[] opSlice(size_t start, size_t end)