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

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

Thread Previous | Thread Next
From:
Colin Newell
Date:
January 9, 2017 19:23
Subject:
Re: [PATCH] Documentation patch to recommend newSVpvn over newSVpv.
Message ID:
CAKPO2a6ZLK7bEfVaXef0QSovmFECojj8rWfqa=DYsS-k4PQrmw@mail.gmail.com
I've amended the documentation accordingly.  I'm afraid I read what I
wanted to read rather than what was there when I saw that macro.


Colin.

On 9 January 2017 at 18:58, Leon Timmermans <fawaka@gmail.com> wrote:
> 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