You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think that's a bug. The inner Array doesn't have direct access to the variables of the File struct. You can use the parent keyword to access the variables of the parent. The following code works in the example you wrote:
You can use the parent keyword to access the variables of the parent.
I've been looking for something like that, thanks!
So let's consider this a documentation bug – a line like this would be very helpful in the documentation of std::array. These docs claim that Array<T, Size> can be used to build multi-dimensional arrays, but does not provide an example for how to achieve that.
Would you consider perhaps a change in the title? That would help users seeking answers.
lukasjuhrich
changed the title
[Bug] Array of Arrays cannot use variable in inner array
[Doc Improvement] Not obvious how to define Array of Arrays
Jul 3, 2024
Operating System
Linux
What's the issue you encountered?
Conceptually, I'm having a pattern like this:
this results in
No variable named 'dim1' found
.How can the issue be reproduced?
Create a file with the contents
and use the pattern above.
Error vanishes when replacing the inner
dim1
by2
.ImHex Version
1.35.3
ImHex Build Type
Installation type
Arch package
Additional context?
Version: 1.35.3
Commit: v1.35.X@dffb7e9
Build time: Jun 29 2024, 19:35:52
Type: Installed
The text was updated successfully, but these errors were encountered: