Skip to content

Change nu_dup to return a mutable slice copy. - #31

Merged
LunaTheFoxgirl merged 2 commits into
Inochi2D:mainfrom
p0nce:dup-mutable
Aug 23, 2026
Merged

Change nu_dup to return a mutable slice copy.#31
LunaTheFoxgirl merged 2 commits into
Inochi2D:mainfrom
p0nce:dup-mutable

Conversation

@p0nce

@p0nce p0nce commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

I've tested that it doesn't break unittests in both nulib and numem (Windows + ldc 1.42).

Optional, but I think it's more in line with expectations of a dlang ".dup"

I've tested that it doesn't break unittests in both nulib and numem (Windows + ldc 1.42).
Comment thread source/numem/core/memory.d Outdated
`nu_dup` is reverted.
Added a test for `nu_mdup`.
@p0nce

p0nce commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Reverted nu_dup, and added nu_mdup and a test for it.

@LunaTheFoxgirl
LunaTheFoxgirl merged commit 9860bab into Inochi2D:main Aug 23, 2026
23 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants