[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
- octave and LLVM google summer of code project, Duncan Sands, 2008/04/08
- Re: octave and LLVM google summer of code project, David Bateman, 2008/04/08
- Re: octave and LLVM google summer of code project, John W. Eaton, 2008/04/08
- Re: octave and LLVM google summer of code project, Duncan Sands, 2008/04/09
- Re: octave and LLVM google summer of code project, David Bateman, 2008/04/09
- Re: octave and LLVM google summer of code project, Eugene I, 2008/04/19
- Re: octave and LLVM google summer of code project, dbateman, 2008/04/19
- Re: octave and LLVM google summer of code project, Eugene I, 2008/04/19
- Re: octave and LLVM google summer of code project, dbateman, 2008/04/20
- Re: octave and LLVM google summer of code project,
John W. Eaton <=
- Re: octave and LLVM google summer of code project, John W. Eaton, 2008/04/20
- Re: octave and LLVM google summer of code project, Eugene I, 2008/04/20
- Re: octave and LLVM google summer of code project, John W. Eaton, 2008/04/20
- Re: octave and LLVM google summer of code project, Eugene I, 2008/04/20
- Re: octave and LLVM google summer of code project, John W. Eaton, 2008/04/20
- Re: octave and LLVM google summer of code project, Eugene I, 2008/04/22
Re: octave and LLVM google summer of code project, Wolfgang_M, 2008/04/15