This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Interleaving pthread_cleanups in C and C++


Hi,

On Sat, 3 May 2003, Zack Weinberg wrote:

> Mark's proposal IMHO goes way too far down the "anything but a
> language extension!" road; however, I am a little leery of generic
> try/finally in C, given the objections raised way back when,

If you could remind me again which those objections were specifically?
IIRC the only one was "no language extension in GCC", despite that
extension being implemented in most other real world compilers, and the
completely trivial specification of it.

> and besides which it isn't clear to me that try/finally are really what
> is wanted.  It seems to me that the appropriate extension is a subset of
> C++'s destructor functionality, allowing one to write something like

Pardon me?  If I understand correctly you propose to add something like
C++ destructors (or a subset, whatever that means) to C to not have to add
try/finally?  Surely you are kidding, aren't you?  You must be.  Compared
with defining try/finally, defining that extension would be _major_ work.
IMHO those are strange ideas to just not have to do try/finally, sorry.


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]