CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=43200
server: Combust/Plack (Perl)
vary: Accept-Encoding
content-encoding: gzip
content-length: 1793
content-type: text/html; charset=utf-8
last-modified: Tue, 14 Oct 2025 11:18:56 GMT
date: Tue, 14 Oct 2025 11:18:56 GMT
strict-transport-security: max-age=15768000
Re: [perl #123466] Overloading for number-specific bitwise ops - nntp.perl.org
Front page | perl.perl5.porters |
Postings from January 2015
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About

Re: [perl #123466] Overloading for number-specific bitwise ops
Thread Previous | Thread NextFrom:
Father Chrysostomos via RTDate:
January 5, 2015 01:56Subject:
Re: [perl #123466] Overloading for number-specific bitwise opsMessage ID:
rt-4.0.18-18857-1420422959-1974.123466-15-0@perl.orgOn Sun Jan 04 16:45:52 2015, perl.p5p@rjbs.manxome.org wrote: > * Father Chrysostomos via RT <perlbug-followup@perl.org> [2015-01- > 04T17:40:13] > > Does anybody currently overload & | ^ ~ for non-numeric uses? The > > only use > > of these I am aware of is by modules like Math::BigInt, etc. > > Yes, although most often I've seen it used for logical purposes, like: > > $newset = $set1 ^ $set2; > > > What I would like to do is just use & for &, leave feature.pm alone, > > and > > recommend that & overloads be number-specific regardless of perl > > version. > > That seems the simplest and most straightforward approach overall. > > I think this is probably correct, but I want to think about it a lot > more than > the 45s I just did. Hopefully other people will have interesting > things to say > before I do that. ;) I have just pushed a new sprout/sbit branch that implements the entire feature, including documentation and tests. It just lacks a note in overload.pm explaining the dual nature of qw(& | ^ ~). -- Father Chrysostomos --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=123466Thread Previous | Thread Next
- [perl #123466] Overloading for number-specific bitwise ops by Father Chrysostomos via RT
- Re: [perl #123466] Overloading for number-specific bitwise ops by Aristotle Pagaltzis
- Re: [perl #123466] Overloading for number-specific bitwise ops by Father Chrysostomos via RT
- Re: [perl #123466] Overloading for number-specific bitwise ops by Ricardo Signes
- Re: [perl #123466] Overloading for number-specific bitwise ops by Aristotle Pagaltzis
- Re: [perl #123466] Overloading for number-specific bitwise ops by Ricardo Signes
- Re: [perl #123466] Overloading for number-specific bitwise ops by Father Chrysostomos via RT
- Re: [perl #123466] Overloading for number-specific bitwise ops by Ricardo Signes
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About