Range returning an array
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Tue Apr 9 15:53:56 PDT 2013
On 04/10/2013 12:50 AM, Joseph Rushton Wakeling wrote:
> I did consider something like that.
By the way: the reason that I rejected the temporary-variable choice was that I
couldn't really see the difference cost-wise between doing that, versus
returning var.dup from front(). Especially as it's not necessarily guaranteed
that front will be called frequently (I might just popFront() until the range is
empty and then take the final front value).
More information about the Digitalmars-d-learn
mailing list