The standard library of the D programming language
Find a file
Akshat Sharma 0dbb785ae9
Improve error message for to!string when used on infinite ranges (#10744)
Partial Fix: #10559

Improve the error message to:
  static assert(0, "Cannot convert infinite range to string. Use `std.range.take` or `std.range.takeExactly` to make it finite.");

Also add a unittest to verify that compilation fails when an infinite range is passed for string conversion.

Co-authored-by: Paul Backus <snarwin@gmail.com>
2025-04-15 15:34:35 +08:00
.circleci Merge Makefiles 2023-12-16 22:22:20 +01:00
.github/workflows Tune FreeBSD timeouts on GitHub Actions (#10708) 2025-03-24 10:33:32 +08:00
changelog fix: remove stray parenthesis in changelog README (#10745) 2025-04-08 23:08:28 +08:00
etc/c Add the ODBC 4.0 modules based on ImportC and deprecate the old ODBC 3.5 modules. (#10649) 2025-02-24 22:18:19 +08:00
phobos Add isType to phobos.sys.traits. (#10663) 2025-03-08 21:32:45 +08:00
std Improve error message for to!string when used on infinite ranges (#10744) 2025-04-15 15:34:35 +08:00
test Add sumtype to Phobos (#7702) 2021-03-05 12:41:34 +01:00
tools Update to unicode 16.0.0 (#9058) 2024-10-16 06:24:56 +08:00
.codecov.yml yaml: make files comply with YAML specification 2021-08-30 14:54:57 +00:00
.dscanner.ini Add the ODBC 4.0 modules based on ImportC and deprecate the old ODBC 3.5 modules. (#10649) 2025-02-24 22:18:19 +08:00
.editorconfig
.gitignore Remove Phobos 3 dub.sdl and replace it with the build_v3.d build script. (#9069) 2024-10-25 17:49:41 -07:00
build_v3.d Remove Phobos 3 dub.sdl and replace it with the build_v3.d build script. (#9069) 2024-10-25 17:49:41 -07:00
CODEOWNERS Update CODEOWNERS to reflect that logger has been moved out of std.experimental (#10608) 2025-01-02 10:11:36 +08:00
CONTRIBUTING.md Remove bugzilla references 2024-12-01 23:23:23 +01:00
index.dd Remove deprecated std.xml module 2022-08-28 11:30:15 +02:00
LICENSE_1_0.txt
Makefile Update DSCANNER_HASH for interpolated strings (#10720) 2025-03-28 12:49:30 -07:00
posix.mak Restore posix.mak, forwarding to generic Makefile 2023-12-16 22:22:20 +01:00
project.ddoc
README.md Remove bugzilla references 2024-12-01 23:23:23 +01:00
unittest.d Remove deprecated symbols from std.digest.digest 2020-04-09 11:35:23 +02:00

D Logo Phobos Standard Library

GitHub tag CircleCi Buildkite Code coverage license

Phobos is the standard library that comes with the D Programming Language Compiler.

Download

Phobos is packaged together with the compiler. You should download the whole precompiled package.

To build everything yourself, there is a description in the wiki.

Phobos is distributed under Boost Software Licence. See the licence file.

I Want to Contribute

Great! See the CONTRIBUTING.md file.