phobos
phobos copied to clipboard
The standard library of the D programming language
Signed-off-by: Luís Ferreira --- Due to `match` template being quadratic/exponential in terms of memory complexity, (`-vtemplate` reports a rediculous amount of templates) using `opEquals` will generate a lot of unnecessary...
The current state of `dirEntries` is not generic enough because it cannot traverse any directory tree `X` (via `SpanMode.depth`) without having to traverse all sub-directories of `X` such as .git...
When the soft limit for NOFILE is set to a high number, the current code for `spawnProcess`, `pipeProcess`, etc. becomes very slow and memory intensive. This is particularly evident when...
ref #8995
Without the cast recent compilers complain with ``` Error: none of the overloads of `sharedLog` are callable using argument types `(FileLogger)` Candidates are: `std.logger.core.sharedLog()` `std.logger.core.sharedLog(shared(Logger) logger)` ```
This probably isn't the best way to do this, and presumably, it'll need to be reworked at some point (just like the Phobos v3 build in general likely will need...
@thewilsonator @rikkimax Depends on this PR being merged: https://github.com/dlang/dmd/pull/16422
time to integrate dip1021 https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md
The two overloads are widely separated. This puts them together for easier study. The changes are mostly indenting. Also has its own error message rather than the compiler generated one.