Uh oh!
There was an error while loading. Please reload this page.
Allow .ptr on pointer to array with ref result location - #19416
Conversation
mlugg
commented
Mar 24, 2024
This contradicts #19414 - since comptime-vars are semantically mutable (albeit only with the ability to store the "correct" value), pointers to them are disallowed at runtime for all the same reasons as normal |
Vexu
commented
Mar 24, 2024
It shouldn't since these are pointers to comptime-fields not pointers to fields of comptime-var structs. |
mlugg
commented
Mar 24, 2024
Oops, sorry, typo in my earlier comment. That should say "comptime fields", not "comptime vars". The problem, in short, is that |
.ptr on pointer to array with ref result location
Salvaging the useful parts of #19347