Re: WITH_THR and WITH_THX

[email protected] (Dave Mitchell)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On Wed, Jun 16, 2010 at 05:43:35PM +0100, Nicholas Clark wrote:
> There are currently exactly two uses of WITH_THR/WITH_THX in core.
> 
> #define WITH_THX(s) STMT_START { dTHX; s; } STMT_END
> #define WITH_THR(s) WITH_THX(s)
[snip]

> Is there a reason why they're actually needed? I can't work it out for sure,
> and I didn't really want to remove something on the basis of "works on my
> machine" without understanding it.

At a guess, when I created the DEBUG_CX maco, I just cargo-culted it from
the existing DEBUG_SCOPE macro. I certainly don't recall any specific
reason to need WITH_THR/WITH_THX, so I'd say go ahead and remove them.

-- 
Gravity is just a theory; teach Intelligent Falling in our schools!
    http://www.theonion.com/content/node/39512
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.