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

[perl #90646] perlop doesn't document bitwise &, |, and ^ on Unicode strings

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
September 8, 2013 02:24
Subject:
[perl #90646] perlop doesn't document bitwise &, |, and ^ on Unicode strings
Message ID:
rt-3.6.HEAD-1873-1378607037-1633.90646-15-0@perl.org
On Thu Sep 20 19:01:20 2012, jkeenan wrote:
> On Sun May 15 14:40:48 2011, tom christiansen wrote:
> > The misplaced discussion in perlop on 3 out of the 4 bitwise operators'
> > behaviour on "bitstrings" is insufficient.  It is suggesting things
> > that are not true.  
> 
> Can you elaborate?
> 
> > 
> > Two things need to happen:
> > 
> >     (1) That material needs to be next to the operators, 
> > 	not someplace else.
> > 
> >     (2) It needs to explain that strings are not literal bitstrings 
> > 	comprising literal bits but rather comprising logical characters.
> > 
> > 	% perl -le 'printf "%vX\n", "abc" ^ "\x{3b1}\x{1066}\x{11222}"'
> > 	3D0.1004.11241
> > 
> > --tom
> 
> Better still, can you supply a patch?
> 
> Thank you very much.
> Jim Keenan


Since we haven't gotten a reply in nearly twelve months, let me rephrase
the question:

Can *anyone* supply a patch?

If no one does, then I think we should take that as an indication that
we do not have a real documentation problem here.

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=90646

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