octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kudos to jwe on exception handling


From: Lukas Reichlin
Subject: Re: Kudos to jwe on exception handling
Date: Thu, 29 Oct 2015 22:33:07 +0100

> On 06.10.2015, at 22:07, Rik <address@hidden> wrote:
> 
> All,
> 
> I wanted to give a shout out to jwe who has been doing exceptional (pun
> intended) work transitioning the core away from using the global variable
> error_state.  The implementation began in Darmstadt just 2 weeks ago and if
> I grep through libinterp for "error_state" from that time I find 1671
> instances.  Today, the number is down to 496.  70% of the instances have
> been removed, and most of them it seems in just the last day.  Hip Hip Hurray!
> 
> --Rik
> 
> 


Nice pun :-) If I understood these changes correctly, it will be possible to 
write statements like below in oct-files:

  Matrix a = args(0).matrix_value ("function_name: error message")

Octave will throw an error if args(0) cannot be converted to a matrix and will 
terminate the function without crashing?

Well, that's just great!

Lukas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]