Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions changelog.dd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ $(BUGSTITLE Library Changes,
has been deprecated.))
$(LI $(RELATIVE_LINK2 has-function-attributes, Added `std.traits.hasFunctionAttributes`
as a user-friendly way to query for function attributes.))
$(LI $(RELATIVE_LINK2 bitwise, Added `std.range.bitwise` to create
a bitwise adapter over an integral type range, consuming the range elements
bit by bit.))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog.dd wasn't removed yet, but it will be soon.
Could you please create a file in the new changelog folder? This will also end merge conflicts with the changelog file.

)

$(BUGSTITLE Library Changes,
Expand Down Expand Up @@ -106,6 +109,18 @@ static assert(!hasFunctionAttributes!(myFunc!bool, "shared"));
-------
)

$(LI $(LNAME2 bitwise, `std.range.bitwise` creates a bit by bit adapter
over an integral type range.)
-------
import std.range : bitwise;
ubyte[] arr = [3, 9];
auto r = arr.bitwise;

r[2] = 1;
assert(arr[0] == 7);
-------
)

)

Macros:
Expand Down
11 changes: 11 additions & 0 deletions changelog/std-range-bitwise.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Added `std.range.bitwise` to create a bitwise adapter over an integral type range, consuming the range elements bit by bit.

`std.range.bitwise` creates a bit by bit adapter over an integral type range.
-------
import std.range : bitwise;
ubyte[] arr = [3, 9];
auto r = arr.bitwise;

r[2] = 1;
assert(arr[0] == 7);
-------
Loading