octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave and LLVM google summer of code project


From: John W. Eaton
Subject: Re: octave and LLVM google summer of code project
Date: Sun, 20 Apr 2008 10:37:35 -0400

On 20-Apr-2008, dbateman wrote:

| Yeah I read some of your forum posts, particularly wrt unwind_protect in
| Octave. Why not just write a stub function for unwind_protect,
| unwind_protect_cleanup and end_unwind_protect that does nothing. The
| restoration of the variables won't happen in case of an error, but the code
| should work. Otherwise do a replacement like
| 
| unwind_protect
| <block1>
| unwind_protect_cleanup
| <block2>
| end_unwind_protect
| 
| with 
| 
| try
| <block1>
| catch
| <block2>
| rethrow(lasterror())
| end
| 
| if you have the rethrow and lasterror functions? This will work for the
| error cases, but not for an interrupt which the unwind_protect block also
| runs the cleanup code

Or, why not just implement unwind_protect?  It should not be that
difficult to do.

Or, just use Octave instead of reimplementing everything.  :-)

jwe


reply via email to

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