[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: message ids for warnings and errors
From: |
Stefan van der Walt |
Subject: |
Re: message ids for warnings and errors |
Date: |
Tue, 6 Dec 2005 23:32:22 +0200 |
User-agent: |
Mutt/1.5.9i |
On Tue, Dec 06, 2005 at 03:18:50PM -0500, John W. Eaton wrote:
> I've started to implement the
>
> warning (msgid, fmt, ...)
> error (msgid, fmt, ...)
>
> feature. This will allow us to also do things like
>
> warning off MATLAB:divideByZero
>
> and (probably) eliminate all the warn_* built-in variables. I would
> rather not tag our warning and error messsages internally with
> "MATLAB:", and I'm not a big fan of StudlyCaps so perhaps we would
> have message IDs like "Octave:divide_by_zero" instead, with a lookup
> table so that this is equivalent to MATLAB:divideByZero (unless we can
> rely on a uniform translation like Octave -> MATLAB and _[a-z] ->
> [A-Z]). Does anyone know of a comprehensive list of IDs that Matlab
> uses for warnings?
I wonder how consistent they are in the usage of these strings. The
best description I could find is at
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/ch12_er7.html#prog_message_identifiers
and it doesn't refer to a list of pre-defined identifiers.
My vote goes for the lookup-table, rather than the string translation.
Regards
Stéfan
- message ids for warnings and errors, John W. Eaton, 2005/12/06
- Re: message ids for warnings and errors,
Stefan van der Walt <=
- Re: message ids for warnings and errors, John W. Eaton, 2005/12/06
- Re: message ids for warnings and errors, Stefan van der Walt, 2005/12/07
- Re: message ids for warnings and errors, John W. Eaton, 2005/12/07
- Re: message ids for warnings and errors, Paul Kienzle, 2005/12/07