Closed brianush1 closed 4 years ago
vector[0 .. vector.length] throws an error, when it clearly should be equivalent to vector[]. The culprit: https://github.com/atilaneves/automem/blob/master/source/automem/vector.d#L365
vector[0 .. vector.length]
vector[]
Valid. But weird that someone wouldn't vector[0 .. $] instead.
vector[0 .. $]
vector[0 .. vector.length]
throws an error, when it clearly should be equivalent tovector[]
. The culprit: https://github.com/atilaneves/automem/blob/master/source/automem/vector.d#L365