Converting a double to a string doesn't work for all rounding modes.
I propose storing the rounding mode before doing the unittest, which changes the unittest from @safe to @system.
- Added additional AutoImplement template which takes one extra
parameter, which specifies the baseclass to use.
- Added Self type parameter to private template AutoImplement_Helper.
- Get the constructor overloads from the baseclass of Self, rather
than from Base, which may be an interface.
- Added relevant unittests
This commit includes a manual changelog entry.
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.