shared arrray problem
Nicolas Gurrola via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 19 11:10:48 PST 2016
On Saturday, 19 November 2016 at 18:51:05 UTC, Charles Hixson
wrote:
> ubyte[] header() @property { return
> fHead[4..$]; }
This method should do what you want. You are only returning a
slice of the fHead array, so if the caller modifies the length it
will only affect of the return value, and not the length of fHead
itself.
More information about the Digitalmars-d-learn
mailing list