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

Re: [PATCH sv.c] mortal doc thinko

Thread Previous | Thread Next
Nick Ing-Simmons
July 30, 2001 03:41
Re: [PATCH sv.c] mortal doc thinko
Message ID:
Dave Mitchell <> writes:
>Nick Ing-Simmons <> wrote:
>> Dave Mitchell <> 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 
>> 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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About