Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add array size information to getters / setters #512
Currently the getters and setters for variables only provide information about total size (
However this makes it impossible to check the sizes of the individual arrays and provide meaningful error messages if they don't match. This is especially important if array sizes change during runtime.
My suggestion is to pass the sizes of the arrays as a parameter
The total size of the memory can be calculated from the
As far as we can remember this has already been discussed at an array working group meeting.
The nValues information is not really needed and could be deleted.
Based on our understanding the nValue information is a light weight information only intended for a basic check if the provided variable array is likely to be constructed correctly. Of course, this is not enough information to check the correctness of the internal array structure.
We would suggest keeping the light weight nValue information and avoid the overhead of providing complete structural information, since such thorough checks are not required in our view.
Discussion on Meeting 1.11.2019
Christian: Regarding the ticket: if one needs debug information, one has to call separately, right?