The analogue of "fill-pointer" in D
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon May 18 11:57:49 PDT 2015
On 5/18/15 2:45 PM, Ali Çehreli wrote:
> Exactly! That recent discovery of mine made me come up with this
> guideline: "Never append to a parameter slice."
I think this may not be an appropriate guideline. It's perfectly fine to
append to a parameter slice. You just need to leave it the way you found
it. Unless the point of the function is to append to it (maybe you
return the result for example).
-Steve
More information about the Digitalmars-d-learn
mailing list