GNOME Bugzilla – Bug 135065
Logical OR
Last modified: 2004-12-22 21:47:04 UTC
In scientific mode, the tooltip for OR is "Logical OR" even thought it does bitwise-OR. Same for AND, NOT, XOR, XNOR. I'm not sure if this is intentional or an oversight, so I just file a report anyway.
Adding Breda, who is my doc writer for her definitive statement on what (if anything) should be done here.
I must admit that I'm not a programmer, so I wasn't aware of the difference between logical operators and bitwise operators. However, I've now done a little research, and I think that Paisa is correct, judging by the following examples from http://uhaweb.hartford.edu/jmhill/suppnotes/creview/opening.htm: Example 1: OR ============= 0x0C | 0x0A = 0x0e 0x0C || 0x0A = 0x01 | is bitwise OR; || is logical OR In gcalctool, 0C Or OA = E ==> gcalctool Or is bitwise OR. Example 2: AND ============== 0x0C & 0x0A = 0x08 0x0C && 0x0A = 0x01 & is bitwise AND; && is logical AND In gcalctool, 0C And OA = 8 ==> gcalctool And is bitwise AND. Conclusions: ============ * Rich needs to update the tooltips to replace "Logical" with "Bitwise". * Breda needs to update the manual likewise. Well spotted, Paisa :)
Thanks Breda. Note that if we want to do this for GNOME 2.5/6, we need to submit an exception request *immediately*. The strings freeze has already been and gone. My feeling is this can wait until GNOME 2.7/8. Breda, what would you recommend?
Um, actually Rich, I think you're best placed to make that decision:) Is it likely that any users are going to be very inconvenienced by the fact that they think they are performing a logical operation but in fact are performing a bitwise operation?
Well Paisa is the first person to discover/mention this so I'm not sure if it's not a popular feature or folks are confused by it. I'd say lets leave it open and let's fix it for GNOME 2.7/8. Paisa, is that okay with you? If so, I'll remove the GNOME 2.5 keyword.
Agree that this can wait :-).
Created attachment 26037 [details] Fix for the problem.
Changes checked into CVS HEAD. I've bumped the version number in configure.in to 4.4.1. Breda, I will also open a new placeholder gcalctool bug (assigned to you), for documentation work (such as updating the online help).