|
From: <HBB...@t-...> - 2007-10-27 23:13:15
|
Ethan A Merritt wrote:
> On Saturday 27 October 2007 13:18, Hans-Bernhard Bröker wrote:
>> I did, for the reason assert() is pretty much always used: to ensure
>> that worse, much harder to find problems don't appear further down the
>> processing pipeline --- you did mention segfaults and strange
>> wrap-around artifacts earlier...
> For debugging - yes.
> It would be more user friendly not to exit the program, however.
> Instead it should be possible to disable the mouse interaction
> until the next replot, and bail to the command line with an error
> message int_error().
>
> Do you see any problems if the assert() statements were replaced by
> if (whatever) {
> [do something to disable mousing];
> int_error(NO_CARET, "error message");
> }
As long as it stays an int_error() (or rather graph_error(), as this
happens in the middle of drawing) --- no problems. An int_warning()
would be critically insufficient, tough.
|