Article View: borland.public.cppbuilder.nativeapi
Article #811Re: ensuring CriticalSections are release..
From: Dennis Jones
Date: Tue, 15 Jan 2008 07:03
Date: Tue, 15 Jan 2008 07:03
24 lines
1969 bytes
1969 bytes
"Clayton Arends" <nospam_claytonarends@hotmail.com> wrote in message news:478c5842$1@newsgroups.borland.com... > "Dennis Jones" <nospam@nospam.com> wrote in message > news:478be3e4$1@newsgroups.borland.com... > >> [ >> Aside: the & (address of) operator is not needed: >> >> ScopeGuardImpl1<void (*)(char*), char*>::MakeGuard(DeleteIt, a); >> ] > > That's personal preference. I always prefer the address-of notation when > grabbing the address of a function/method. There's a pretty big thread > discussion about this that I was involved in if you'd like to look for it. > ;-) Thanks. It seems there are a number of cases where it is required, and since it may also be redundant but without doing any harm, I may have to change my habit. It's also more or less in line with my preference to be explicit in cases where there is potential for ambiguity. Thanks for the nudge. - Dennis
Technical Details
Message-ID:
<478c5acd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<478a96e3@newsgroups.borland.com> <478b0076$1@newsgroups.borland.com> <478bac9a$1@newsgroups.borland.com> <478bba5f$1@newsgroups.borland.com> <478be3e4$1@newsgroups.borland.com> <478c5842$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,266d339b0fd4ba38 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <478a96e3@newsgroups.borland.com> <478b0076$1@newsgroups.borland.com> <478bac9a$1@newsgroups.borland.com> <478bba5f$1@newsgroups.borland.com> <478be3e4$1@newsgroups.borland.com> <478c5842$1@newsgroups.borland.com> Subject: Re: ensuring CriticalSections are release.. Date: Mon, 14 Jan 2008 23:03:43 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 71.245.109.58 Message-ID: <478c5acd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1200380621 71.245.109.58 (14 Jan 2008 23:03:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail