Debug help - Programming in D - extending tail slice terminates sharing unexpectedly. Page 69, 70
monkyyy
crazymonkyyy at gmail.com
Sun Oct 19 22:57:38 UTC 2025
On Sunday, 19 October 2025 at 21:30:40 UTC, Brother Bill wrote:
>
> Please guide me to best practices with slice sharing.
Treat it as a design flaw, if your project need both slice and
dynamic arrays and your causing spooky bugs, consider wrappers
for slicing that disables appending and dynamic arrays that
slicing returns explicit slices; pass dynamic arrays by ref.
More information about the Digitalmars-d-learn
mailing list