Skip to content

Fix issue 23102 - Allow capacity queries on non-copyable arrays#23112

Merged
thewilsonator merged 1 commit into
dlang:stablefrom
CyberShadow:fix-23102-capacity-noncopyable
May 9, 2026
Merged

Fix issue 23102 - Allow capacity queries on non-copyable arrays#23112
thewilsonator merged 1 commit into
dlang:stablefrom
CyberShadow:fix-23102-capacity-noncopyable

Conversation

@CyberShadow
Copy link
Copy Markdown
Member

@CyberShadow CyberShadow commented May 9, 2026

Fixes #23102.

Adds a new _d_arraygetcapacity plumbing function so that the capacity query path can be instantiated separately from the resizing path.

@CyberShadow CyberShadow force-pushed the fix-23102-capacity-noncopyable branch from 361cfb7 to 394f698 Compare May 9, 2026 08:57
@CyberShadow CyberShadow marked this pull request as ready for review May 9, 2026 09:33
@CyberShadow CyberShadow marked this pull request as draft May 9, 2026 11:05
@CyberShadow CyberShadow force-pushed the fix-23102-capacity-noncopyable branch 2 times, most recently from 66ec228 to a544b01 Compare May 9, 2026 12:27
@CyberShadow CyberShadow marked this pull request as ready for review May 9, 2026 12:52
Comment thread druntime/src/core/internal/array/capacity.d Outdated
@CyberShadow CyberShadow force-pushed the fix-23102-capacity-noncopyable branch from a544b01 to c52c6f5 Compare May 9, 2026 14:55
@thewilsonator thewilsonator added the Druntime Specific to druntime label May 9, 2026
@thewilsonator thewilsonator merged commit 644f827 into dlang:stable May 9, 2026
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Druntime Specific to druntime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants