develooper Front page | perl.perl5.porters | Postings from January 2017

Re: [PATCH] Documentation patch to recommend newSVpvn over newSVpv.

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
January 9, 2017 18:58
Subject:
Re: [PATCH] Documentation patch to recommend newSVpvn over newSVpv.
Message ID:
CAHhgV8gt2do2Qo9H=CV7+UUvOtfm3ub7hoRhO1GiThAhjp89Eg@mail.gmail.com
On Sat, Jan 7, 2017 at 10:52 PM, Colin Newell <colin.newell@gmail.com>
wrote:

> Thanks Leon, that was exactly what I was looking for.  I failed to
> find it because I only looked in sv.c rather than looking at the docs
> or looking further.
>
> Is this doc patch closer to useful?


I think you missed the point of pvs: it is essentially always the best way
to deal with any literal (it deals with them regardless of length or
content), because it can figure out the length itself.

Leon

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