From b6c089da6af023974b7821218214cb459f27aea0 Mon Sep 17 00:00:00 2001 From: Guillaume Piolat Date: Tue, 11 Aug 2026 13:07:58 +0200 Subject: [PATCH] Making nu_is_overlapping pure makes string ~= string pure in nulib, which allows much more purity downstream --- source/numem/core/memory.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/numem/core/memory.d b/source/numem/core/memory.d index 50e5278..8d0474b 100644 --- a/source/numem/core/memory.d +++ b/source/numem/core/memory.d @@ -424,7 +424,7 @@ void nu_swap(T)(ref T a, ref T b) @nogc { */ export extern(C) -bool nu_is_overlapping(void* a, size_t aLength, void* b, size_t bLength) @nogc nothrow { +bool nu_is_overlapping(void* a, size_t aLength, void* b, size_t bLength) @nogc nothrow pure { // Early exit, null don't overlap. if (a is null || b is null)