bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] Bitwise operators [Was: Re: Feature Requests]


From: John Darrington
Subject: [bug-recutils] Bitwise operators [Was: Re: Feature Requests]
Date: Mon, 18 Feb 2013 08:00:00 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Feb 15, 2013 at 06:05:54PM +0100, Jose E. Marchesi wrote:
         
         3.  Selection expressions:  Please provide bitwise operators.
     
     I was implementing this using &, | and ~ for the bitwise operators AND,
     OR and NOT, and then realized that & is already being used as a
     string concatenation operator.
     
     Ideas?

~  is also used for something isn't it?

We need 4 operators: AND OR NOT XOR

In the circumstances, I suppose they will have to be two character 
combinations.How about:

.&   AND
.|   OR
.~   NOT
.^   XOR

Would that conflict with anything?

J'


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]