Tue 06 Oct 2015 10:10:49 AM UTC, original submission:
With the attached example functions 'f1.m' and 'f2.m' in the path, I'd expect something like the following error message for calling 'f1 ();':
But what I currently get is:
I.e. the chief point is that line and column information is lacking. (The reduced number of messages is probably due to the fact that the error function eats messages which appear to be equal; this will cause no problems anymore if the line information is present, so that the messages are not equal anymore.)
With the changeset (attached as soon as I have the bug number), the messages are as shown above as those I'd expect.
Notes to the changeset:
- Matlab prints e.g.
instead of
but I don't think this is necessary as long as the line information is present to allow looking up the function definition in the user code.
- I didn't check for
in the calling context, so if both the anonymous function definition and the anonymous function call are from the command line, always 1 is printed for the line number, and the column number is correct. But this seems better to me than printing line=-1 and column=-1 in this case.
- I don't know if it is good or necessary to make a test for this bug.
|