develooper Front page | perl.ithreads | Postings from December 2007

Re: Lexical Object copied to new thread

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
December 23, 2007 12:34
Subject:
Re: Lexical Object copied to new thread
Message ID:
20071223202951.GB23125@iabyn.com
On Sun, Dec 23, 2007 at 10:29:55PM +0200, Shmuel Fomberg wrote:
> Anyway, my question is that $x is a lexical inside run_test, and as much as
> I understood it was not suppose to be copied to the new thread. But it is.

In a new thread, *everything* is copied, apart from the calling stacks.

-- 
SCO - a train crash in slow motion

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About