M
mjm
Folks,
I have the following problem: when using arrays or matrices I often
write past the index bounds. To prevent this from happening I check
the bounds and return an error message such as
Matrix: index i=... not in [....]
However this is only of limited help since all I know now is that the
subscripting operator of Matrix was applied incorrectly.
What I really would like to know is what function called this
subscripting operator so I can tell where the mistake happened.
Is there a good solution to this?
I have the following problem: when using arrays or matrices I often
write past the index bounds. To prevent this from happening I check
the bounds and return an error message such as
Matrix: index i=... not in [....]
However this is only of limited help since all I know now is that the
subscripting operator of Matrix was applied incorrectly.
What I really would like to know is what function called this
subscripting operator so I can tell where the mistake happened.
Is there a good solution to this?