Skip to content

use std::array to implement fixed arrays#889

Open
ab9rf wants to merge 1 commit into
masterfrom
use-std-array
Open

use std::array to implement fixed arrays#889
ab9rf wants to merge 1 commit into
masterfrom
use-std-array

Conversation

@ab9rf

@ab9rf ab9rf commented Jul 12, 2026

Copy link
Copy Markdown
Member

std::array is byte-equivalent to a C style array, so this will always work with DF's structures, but using std::array gives us a lot of coding convenience on our side as std::array has much more reasonable semantics than a C-style array

these changes require a coordinated change in the dfhack repository (DFHack/dfhack#5847)

`std::array` is byte-equivalent to a C style array, so this will always work with DF's structures, but using `std::array` gives us a lot of coding convenience on our side as `std::array` has much more reasonable semantics than a C-style array

these changes require a coordinated change in the dfhack repository
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.

1 participant