[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59192] unwind_protect objects should be repla
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives |
Date: |
Mon, 28 Sep 2020 12:25:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #8, bug #59192 (project octave):
I started looking at replacing calls to frame.protect_var with
unwind_protect_var<T> objects because I thought that it might be possible to
do most of them fairly easily. But I quickly discovered (after looking at
just one file!) that there are likely to be many cases that will need some
thought.
I still consider this to be a good change to make but would recommend doing
this job carefully over time rather than trying to do it quickly or
semi-automatically.
It might also be nice to have variadic templates that would allow something
like
unwind_protect_vars<T1, T2, ...> upv1 (var1, var2, ...);
unwind_protect_vars_with_vals<T1, T2, ...>
upv2 (var1, new_val1, var2, new_val2, ...);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59192>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, Markus Mützel, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, Markus Mützel, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, Markus Mützel, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, John W. Eaton, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, Markus Mützel, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, John W. Eaton, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, John W. Eaton, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should accept lambda expressions, John W. Eaton, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Rik, 2020/09/27
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives,
John W. Eaton <=
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Rik, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, John W. Eaton, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Markus Mützel, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, John W. Eaton, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Markus Mützel, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Rik, 2020/09/28
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Markus Mützel, 2020/09/29
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, John W. Eaton, 2020/09/29
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Rik, 2020/09/29
- [Octave-bug-tracker] [bug #59192] unwind_protect objects should be replaced with lighter weight alternatives, Rik, 2020/09/29