Motivation: Named tuples are a lot better to read.
There has been a precedent for this, see https://github.com/dlang/phobos/pull/5436
nullSink returns the NullSink by reference and thus allows using it
directly in code which expects an OutputRange by reference.
The pattern is providing convenience wrappers for struct construction is
very common in Phobos, e.g. `re…
Propagating the config from https://github.com/dlang/dmd/pull/7470.
Following https://github.com/dlang/phobos/pull/5948#discussion_r158286141
> I think we should make it a guideline that version(unittest) top-level imports should be used with caution.
In fact we have been removing unused debug stat…
This already works nicely, so imho just adding a public example should do the trick.
I'm not sure how people want to start testing -betterC compatibility with Phobos. I assume the best way would be to do extract all unittests marked with @betterC?
unittest @betterC
{
....
}
For now I went with a m…
See https://github.com/dlang/dmd/pull/7476 for more details
There's no need to open and open and parse the gigantic
std.internal.unicode_tables if it's never needed.
My journey:
std.net.curl -> etc.c.curl -> std.socket -> std.stdio -> std.uni -> std.internal.unicode_tables.
…
This is a revival of std.range.slide … finally!
std.range.slide was introduced in https://github.com/dlang/phobos/pull/4027 and I delayed its release in https://github.com/dlang/phobos/pull/5614 as at the …
Gets rid off of a huge chunk of redundancy by simply moving common variables to a shared file.
According to Bugzilla 3372 has been fixed six years ago.
In lack of a machine to test it and as it needs to work on auto-tester anyhow. Here's an attempt to remove the split into differ…
Building the documentation under Windows has been abandoned (see e.g. https://github.com/dlang/dlang.org/pull/1976).
Hence the Windows doc targets here aren't run by any CI. This will leave a bad impression when used and being broken….
The problem is that Take explicitly avoid nesting itself, which usually is really smart, because take takes care of removing nested take calls:
https://github.com/dlang/phobos/blob/2f539a4c34fbe3c26b2bb951040aac19ee1a51a7/std…
Trying @rainers's advice from https://github.com/dlang/phobos/pull/5929#issuecomment-352184482 to debug the DScanner failure.
I really don't want to do this as we then most likely will forget about it, but the failures are getting more persistent :/
This works by replacing the Makefile target with dscanner_disabled and then executing it separately with the…
Looks fairly straight-forward so far.
Note that CircleCi 2.0 allows to use custom Docker images.
So for example, we could built the DMD compiler into it and avoid the network issues during it's download.
Also allows this other custo…
To investigate the repeated, spurious failures on CircleCi.
This should allow us to get a better stack trace.
It also tweaks the gdb command.
Same pattern as in https://github.com/dlang/phobos/blob/5964600c8d15fa28d7a6c4321b1e3705d03e492c/std/stdio.d#L3575-L3578
Maybe instead of the trustedStdout workaround makeGlobal should have been made @safe?
There's still quite a bit of stuff in Phobos, that shouldn't be parsed & executed when Phobos is imported by a user who runs his tests.
For the motivation of excluding unittest in templates, please see https://wiki.dlang.org/DIP82
…
A first step for https://github.com/dlang/phobos/pull/5916 - there's still much work to do.
This is a proposal for experimenting with a pull request template.
More details about this:
The current changelog can be previewed at https://dlang.org/changelog/pending.html
@ reviewers DAutotest builds the pending changelog too, s.t. changes to it can be conveniently previewed.
In this case, just dropping the Bugzilla l…
So after I have been thinking about this for quite a while, I realized that I am almost weekly in a case where import std would make my life easier.
Other reasons include:
As neither @MartinNowak nor I can reproduce the spurious DScanner failures locally, getting a stack trace on a SEFAULT is probably the best thing we can do.
CC @CyberShadow @ZombineDev @JackStouffer