Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:
sed "s/private import/import/g" -i **/*.d
I had trouble understanding how RefCounted!T was supposed to help me manage resources. These document changes should clarify the process and make it easier for others to understand.
This is follow-up after this post on the D learn forum: https://forum.dlang.org/post/qctmkqpqnreysxcjmrgm@forum.dlang.org
and after commits cd86cc25b6 and 33217eb46f "Clarify deallocation done by std.typecons.Unique."
Replace $(REF destroy, object) with $(D destroy) in typecons.Unique documentation so that DDOC is more likely to format it correctly.
This edit is follow-up to the earlier "Clarify deallocation done by typecons.Unique." commit.
I had trouble understanding how Unique!T was supposed to help me manage resources. These document changes should clarify the process and make it easier for others to understand.
Caveat: I'm not absolutely sure if $(REF destroy, object) will do what I intend after doc generation. I don't have time to learn how to build Phobos' documentation to test it. I intend it to reference https://dlang.org/library/object/destroy.html so that the reader can easily understand the implications.
This is follow-up after this post on the D learn forum: https://forum.dlang.org/post/qctmkqpqnreysxcjmrgm@forum.dlang.org
If this change goes well, then I will attempt to update RefCounted!T as well.
I was getting sick of this not working, and there have been multiple bug
reports on this, so I'm just fixing it. With these changes, using == and
!= on null Nullables will not result in an AssertError but instead will
consider them equal if they're both null, equal if they're both non-null
and have the same value, and not equal otherwise.
- we can't really solve Issue 15316 w/ signaling NaNs
b/c any optimization, copying et.al. might turn signaling into
quiet NaNs, therefor we want to solve Issue 15316 by switching
Float.init to use quiet NaNs
- the workaround depends on a specific dmd bug (see #6163)
that looses SNaNs when writing struct initializers but keeps
them for Float.init
- this workaround might not be portable to GDC/LDC and
will easily break w/ slightly different dmd optimizations
(it's responsible for the test failure of the gdc-built dmd)
- this PR will reopen https://issues.dlang.org/show_bug.cgi?id=11135
this partially reverts commit 0efa1d3bf9