Skip to content
Merged
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
19 changes: 2 additions & 17 deletions changelog.dd
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,13 @@ $(COMMENT Pending changelog for 2.071. This will get copied to dlang.org and

$(BUGSTITLE Library Changes,

$(LI $(RELATIVE_LINK2 json-encode-control-characters, `std.json` encodes string control characters.))
$(LI The package $(STDMODREF experimental_ndslice, std.experimental.ndslice) was added.
It is also available as part of the $(LINK2 https://github.com/DlangScience/mir, Mir library).)
$(LI Default LogLevel of FileLogger was changed to LogLevel.all.)
$(LI Access to the internal `ptr` and `len` fields of $(XREF bitmanip, BitArray) was deprecated.)
$(LI $(XREF experimental.allocator.gc_allocator, GCAllocator.goodAllocSize)
$(LI $(REF GCAllocator.goodAllocSize, std,experimental,allocator,gc_allocator)
Copy link
Member

Choose a reason for hiding this comment

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

You sure this is how it is supposed to be? This file doesn't get built by @CyberShadow's autotester, so it's hard for me to know whether this works.

I find it hard to believe that this needs 5 parameters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You sure this is how it is supposed to be? This file doesn't get built by @CyberShadow's autotester, so it's hard for me to know whether this works.

I've built it with dmd ../dlang.org/{std,html,dlang.org,macros}.ddoc -Dfchangelog.html changelog.dd. The page doesn't look pretty, but one can see that it generates this href:

../phobos/std_experimental_allocator_gc_allocator.html#GCAllocator.goodAllocSize

Which looks ok. Though I've just noted that it seems to miss a dot in front of "GCAllocator". But that must be fixed in the REF macro, I think.

I find it hard to believe that this needs 5 parameters.

Well, the module hierarchy is that deep and REF takes the segments individually, as it needs to join them differently two times: once with dots for the name, once with underscores for the URL.

Copy link
Member

Choose a reason for hiding this comment

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

ok.

BTW, I totally understand why very few people do anything for ddoc improvements. I have no idea how to correctly use the various macros.

This LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But that must be fixed in the REF macro, I think.

dlang/dlang.org#1223

Copy link
Contributor

Choose a reason for hiding this comment

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

The REF macro supersedes a number of less generic macros for cross-referencing. It is used correctly here.

edit: that said I don't think the inconsistent use of whitespace here is justified.

was added.)

)

$(BUGSTITLE Library Changes,

$(LI $(LNAME2 json-encode-control-characters, `std.json` encodes string control characters.)

$(P Instead of throwing a $(XREF json, JSONException), $(XREF json, toJSON)
encodes now the control characters of a string.
)

------
assert(toJSON(JSONValue("foo\u007fbar") == `"foo\u007Fbar"`);
------
)

)

Macros:
Expand Down