Talk:Bitwise operations: Difference between revisions

(→‎assumption of how integers are stored: If any operation is not available in your language, note it.)
Line 21:
:::: It's not about fairness. It IS the way the REXX language represents (stores) integers (and every kind/type of number). Now you get it. 75 is stored as the character sequence '75' !! There is no indirect symbolism here, that's just the way the REXX language stores EVERYTHING. No binary integers, no binary floating point numbers, no boolean switches/flags/bits, ... just characters. There is no indirection stages. Just the storing of characters. If you think that's indirect symbolism, then, yes, that's what I've been saying (above), bitwise operations on integers that are stored as characters doesn't make that much sense. But the REXX language does allow it --- but most uses of bitwise operations (on integers) aren't usually performed for arithmetic reasons as such). -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:11, 23 March 2012 (UTC)
 
:The question is interesting, and actually it's more or less the answer I got when I asked for introduction of binary ops in the GAP language, a few years ago: the storage is not necessarily binary, etc. However, the argument is not correct: these operators are well defined regardless of how numbers are stored. They are defined on the binary representation of those numbers, which does '''not''' mean they have to be stored in binary. Likewise, I can write 57 & 112 = 48, without writing the numbers in binary (they are in decimal here). Don't confuse the number with its computer representation, or with any representation whatsoever. That being said, the operation will be much easier to implement if the numbers are stored in binary, but that's really another concern. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 09:54, 11 February 2020 (UTC)
"If any operation is not available in your language, note it.", <br>
Such languages should also write about how they differ from the assumptions/try as best they can? --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 12:57, 17 December 2018 (UTC)
1,336

edits