rfc:logicalshiftoperator
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:logicalshiftoperator [2011/07/18 00:24] – Add note about <<< being used by heredoc ircmaxell | rfc:logicalshiftoperator [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Request for Comments: Add a Logical Shift Operator For Strings ====== | ====== Request for Comments: Add a Logical Shift Operator For Strings ====== | ||
* Version: 1.0 | * Version: 1.0 | ||
- | * Date: 2008-03-06 | + | * Date: 2011-17-07 |
* Author: Anthony Ferrara < | * Author: Anthony Ferrara < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 15: | Line 15: | ||
The currently implemented left and right shift operators (''<<'' | The currently implemented left and right shift operators (''<<'' | ||
- | The problem can be seen by trying to shift '' | + | The problem can be seen by trying to shift '' |
- | Additionally, | + | Additionally, |
At present, if you want to do a logical shift on a string, you need to iterate over the string and apply the shift to each part of it (where the part is less than 4 bytes long, to prevent issues on 32 bit systems). | At present, if you want to do a logical shift on a string, you need to iterate over the string and apply the shift to each part of it (where the part is less than 4 bytes long, to prevent issues on 32 bit systems). | ||
Line 37: | Line 37: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | I propose the addition of two new operators which will perform a logical shift. | + | I propose the addition of two new operators which will perform a logical shift. |
Example: | Example: | ||
Line 49: | Line 49: | ||
===== Changelog ===== | ===== Changelog ===== | ||
- | - Added note about <<< | + | - Added note about %%<<< |
rfc/logicalshiftoperator.1310948660.txt.gz · Last modified: 2017/09/22 13:28 (external edit)