2.9.18 --> 3.0

John W. Eaton jwe at bevo.che.wisc.edu
Tue Dec 4 13:02:35 CST 2007


On  3-Dec-2007, John W. Eaton wrote:

| On  1-Dec-2007, Thomas Treichl wrote:
| 
| | John W. Eaton schrieb:
| | > On  1-Dec-2007, Thomas Treichl wrote:
| | > 
| | > | Oooops, I would have better had a look at the codes before I wrote
| | > | that email. I found the FIXME in the error.cc file.
| | > 
| | > I remember this problem being discussed before, but I'm not sure I see
| | > a FIXME note in error.cc that is specifically about it.
| | > 
| | > jwe
| | 
| | In current CVS file error.cc "DEFUN (error, args, ," line 1019:
| | 
| |    // FIXME -- need to extract and pass message id to
| |    // handle_message.
| | 
| | The mwarnerr.m output from the example I sent looks somehow like that fixme for 
| | me, ie. the error ID is passed to the output instead of the error message and so 
| | the error id is not extracted but taken as the output string? My example looks like
| | 
| |    octave-2.9.17:1> mwarnerr
| |    warning: This is a warning with ID
| |    error: mwarnerr:ErrID
| |    error: called from `mwarnerr' in file `/Users/Me/tmp/mwarnerr.m'
| | 
| | I'm not sure that I have had a look at the right place?
| 
| Sorry, I misunderstood what the problem was (it might have helped if
| in your original message you had shown the output you see and the
| output you expect).
| 
| As you've noted, there is a FIXME about this problem.
| 
| I guess I'm waiting for a patch.

OK, I tired of waiting and decided to make the following change.

Now I see this behavior:

  octave:1> mwarnerr
  warning: This is a warning with ID
  error: This is an error with ID
  error: called from `mwarnerr' in file `/export/home/jwe/mwarnerr.m'
  octave:1> lasterror
  ans =
  {
    message = error: This is an error with ID

    identifier = mwarnerr:ErrID
    stack =
    {
      file = /export/home/jwe/mwarnerr.m
      name = mwarnerr
      line =  3
      column =  3
    }

  }


jwe


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20071204/4030625e/attachment.ksh 


More information about the Octave-maintainers mailing list