develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH sv.c] mortal doc thinko

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
July 30, 2001 03:41
Subject:
Re: [PATCH sv.c] mortal doc thinko
Message ID:
20010730104129.11518.2@bactrian.ni-s.u-net.com
Dave Mitchell <davem@fdgroup.co.uk> writes:
>Nick Ing-Simmons <nick@ing-simmons.net> wrote:
>> Dave Mitchell <davem@fdgroup.co.uk> writes:
>> >This minor patch for sv.c fixes some thinkos in the apidoc stuff
>> >I added a while back.
>> 
>> Not applied. Unless that patch is reversed it makes things worse IMHO.
>> I find the "current statement ends (or thereabouts)" misleading.
>> 
>> Mortality extends to next FREETMPS - the end of current perl statement does 
>> that I agree, but in XS code next person is not necessarily thinking 
>> in terms of perl statements (they might think that means XS "statement"), 
>> and should be considering their own 
>> ENTER/SAVETMPS/FREETMPS/LEAVE 
>> issues. So current "context" is "better" - but improvements welcome. 
>
>How about:
>
>It will be destroyed "soon", either by an explicit call to FREETMPS,
>or by an implicit call at places such as statement boundaries.

Seems okay to me - comments from rest of you ?

>
>(I wanted to get rid of the word "context", since that has specific
>connotations in the internals).

In my (possibly confused) tiny mind the meaning of "context" 
that is specific to the internals includes "when mortals get freed".
That is SAVETMPS (which is paired with FREETMPS) is pushed onto 
the "context" stack. It is true that not all context exits free
mortals, but the two operations are related.

-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


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