From maintainers-request at octave dot org Fri Dec 9 06:50:45 2005 Subject: Re: message ids for warnings and errors From: Paul Kienzle To: Stefan van der Walt Cc: octave maintainers mailing list Date: Fri, 9 Dec 2005 07:49:20 -0500 On Dec 9, 2005, at 4:40 AM, Stefan van der Walt wrote: > On Thu, Dec 08, 2005 at 11:38:09PM -0500, Paul Kienzle wrote: >> The obvious way is to maintain a list of warning >> names and states for the current function context >> and run through this list when the function returns. >> This does mean the majority of functions have to >> pay for a feature they do not use, so not an ideal >> solution. > > Would it be worthwhile to implement hash-tables in liboctave? That > way the performance hit needs to be minimal. That isn't the issue. The issue is that in ov-usr-fn.cc(do_multi_index_op) you would need to push and pop the set of suppressed warnings on the unwind protect stack for every function call even though most functions don't need it. - Paul