Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: C/C++ question about dynamic "static struct" Date: Mon, 22 Oct 2012 08:41:35 +1300 Lines: 22 Message-ID: References: <507F380B.2060402@verizon.net> <8q66l9-lkm.ln1@wilbur.25thandClement.com> <5081D9DA.6020103@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net jGWhdcrPh7Tv61Sof7311AzbsTJMA63+LJ3EAH7Amzj3eUCAhJmUxH8gUi8FawlRQb Cancel-Lock: sha1:osNctyUDelcTLqpOx42cT2CF+9g= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:12.0) Gecko/20120423 Thunderbird/12.0 In-Reply-To: Xref: csiph.com comp.lang.c++:19176 comp.lang.c:27472 On 10/22/12 07:31, Les Cargill wrote: > Ian Collins wrote: >> On 10/21/12 20:11, Les Cargill wrote: >>> Ian Collins wrote: >>>> >>>> C simply can't do RAII, >>> >>> Not in the specific manner Stoustrup used it, but it's >>> perfectly easy to achieve the same goal. >> >> I'm sorry, but it isn't. RAII is one C++ feature that C can't do. >> > > I respectfully submit that you haven't thought > that though. I won't bore you with the sea stories... > but it's been done... I certainly have thought it through. Please provide an example of RAII in C. -- Ian Collins