raw_data not works with dynamic array with fixed storage size #7535
Closed
sasakidoyou
started this conversation in
Proposals
Replies: 3 comments
|
This doesn't make sense. |
0 replies
|
You'd have to give raw_data the pointer to the array because it doesn't have a pointer to the data embedded in it like a slice or dynamic array. And this already works. arr: [dynamic; 4]u8
fmt.println(raw_data(&arr)) |
0 replies
|
Ok thanks |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
raw_data not works with dynamic array with fixed storage size:
See raw_data:
What I want:
Add _raw_data_dynamic_cap :: proc(value: [dynamic; $N]$E) -> [^]E ---
All reactions