develooper Front page | perl.perl5.porters | Postings from March 2013

Re: [perl #116961] Data::Dumper 2.143 tests failures on 5.10.1

Thread Previous | Thread Next
From:
Karl Williamson
Date:
March 8, 2013 18:53
Subject:
Re: [perl #116961] Data::Dumper 2.143 tests failures on 5.10.1
Message ID:
513A33B3.4090300@khwilliamson.com
On 03/08/2013 11:27 AM, Karl Williamson wrote:
> On 03/08/2013 11:01 AM, James E Keenan via RT wrote:
>> On Fri Mar 08 09:58:59 2013, Hugmeir wrote:
>>
>>>
>>> Shouldn't isWORDCHAR(c)'s definition be (isALNUM(c) || *(c) == '_')?
>>>
>>
>> I suspect the answer to that starts with: "Do it in a branch and push
>> to a smoke me."
>>
>> ---
>> via perlbug:  queue: perl5 status: open
>> https://rt.perl.org:443/rt3/Ticket/Display.html?id=116961
>>
>
>
> The answer to this is no, and reinforces why I made the change in the
> first place.  isALNUM is identical to isWORDCHAR, but is misleadingly
> named, and that name has led you guys astray.
>
> There is an isALNUMC, as well.  I believe the extra C means that it is
> the C language's version of an alphanumeric.  So this is correct:
>
>   isWORDCHAR === isALNUM === (isALNUMC(c) || *(c) == '_')
>


I forgot to mention that I've added a new synonym in 5.17 for isALNUMC; 
and it is isALPHANUMERIC.  I think that is much clearer; I couldn't 
think of a shorter name, since isALNUM was already taken.

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