Commit graph

16145 commits

Author SHA1 Message Date
Robert burner Schadek
ef2eb4fdb7 Better Sort static assert error messages 2023-02-13 21:14:34 +01:00
The Dlang Bot
73ba45329e
Merge pull request #8683 from ibuclaw/merge_stable
Fix issue 23668: TimSort must avoid default initialization if the type being sorted has it disabled.

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
2023-02-13 04:17:30 +01:00
Iain Buclaw
6d7b83d49c Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-02-13 01:30:01 +00:00
Steven Schveighoffer
bdc75f6c6d
Based on my tests, this should save about 56K of compiler RAM per (#8682)
instantiation of ReturnType, and some amount of compile time.
2023-02-13 07:08:01 +08:00
MathewColin
eb461f8e9d
Better document the use of Heaps with Dynamic Array as Store (#8677)
Better document the use of Heaps with Dynamic Array as Store

Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Merged-on-behalf-of: Dennis <dkorpel@users.noreply.github.com>
2023-02-09 13:55:44 +01:00
Mathis Beer
c06e3171f1 Fix issue 23668: TimSort must avoid default initialization if the type being sorted has it disabled. 2023-02-04 09:51:27 +01:00
Iain Buclaw
1f49f65c51 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-02-01 20:32:15 +00:00
DanutAldea
cce4c938dd Fix Issue 20397 2023-02-01 00:44:25 +01:00
Rosca Rares
71c78b4dee Fix Issue 19567 2023-02-01 00:18:28 +01:00
RazvanN7
61658d2372 Remove alias this from classes in phobos 2023-01-26 14:35:08 +02:00
Razvan Nitu
6eaa69f12d
Merge pull request #8657 from dukc/correctGraphemeWalker
Fixed many issues in grapheme walker
2023-01-20 16:35:42 +08:00
Ate Eskola
a0b74aab18 Brace style fixed. 2023-01-19 18:59:27 +02:00
Mathis Beer
19eaf8a1bd Fix issue 23640: Use Nullable[] to allow iterating Nullable of immutable type. 2023-01-19 12:20:06 +01:00
Ate Eskola
93a8054a9e Commented which parts of the state machine satisfy which GB rules. 2023-01-18 23:21:43 +02:00
Razvan Nitu
20763349e1
Merge pull request #8663 from deadalnix/propersignextend
Branchless sign extend in std.bitmanip
2023-01-18 19:26:09 +08:00
Razvan Nitu
76d23ea5ea
Merge pull request #8667 from ntrel/concur-docs
Tweak std.concurrency docs
2023-01-18 19:20:47 +08:00
Amaury Séchet
19ac06272d Branchless sign extend in std.bitmanip 2023-01-18 01:32:47 +00:00
Nick Treleaven
e18ed95ed0 Tweak std.concurrency docs 2023-01-17 16:27:47 +00:00
Ate Eskola
6550747c72 Refactored the grapheme walker to a proper state machine. 2023-01-14 19:32:56 +02:00
Ate Eskola
57fe5b80e5 Got rid of mixin(eat) in grapheme walker. 2023-01-14 17:12:10 +02:00
Ate Eskola
6e79e72334 Fixed unexplained rebase conflicts 2023-01-14 17:11:21 +02:00
Ate Eskola
e53a0aba9f Missing two tables & some clarrifications (Real author is Richard Cattermole, name changed while rebasing) 2023-01-14 17:07:05 +02:00
richard (rikki) andrew cattermole
fce7d2f6e8 Whitespace to make it fail! 2023-01-14 16:52:51 +02:00
richard (rikki) andrew cattermole
0679c7bbab Forgot to rename a couple of tries 2023-01-14 16:52:51 +02:00
Ate Eskola
b334d4ddb2 Fix issue 23474 - Fixed many issues in grapheme walker 2023-01-14 16:52:51 +02:00
RazvanN7
ad92ea2f8d Use traits(getVirtualMethods) instead of traits(getVirtualFunctions) 2023-01-12 23:06:28 +01:00
João Lourenço
7cc45a81df
test(format.read): add formattedRead compile-time format string overload with Tuple arguments unit tests
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2023-01-05 18:39:30 +00:00
João Lourenço
c4192e855e
fix(format.read): formattedRead incorrectly static asserts with Tuple and compile-time format string
This method supports std.typecons.Tuple, however, when passing the
format string at compile-time, the format validation does not correctly
account for the std.typecons.Tuple's types and instead validates the
std.typecons.Tuple itself leading to a static assert.

This change now adds support for this feature when used with
compile-time format strings.

Fix Issue #23600

Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2023-01-05 18:39:18 +00:00
Nick Treleaven
52dfd3e553 Remove RUNNABLE_EXAMPLE to fix DAutoTest 2023-01-04 19:43:38 +00:00
Nick Treleaven
ac5108e7e0 Apply suggestions from code review
Co-authored-by: Razvan Nitu <razvan.nitu1305@gmail.com>
2023-01-04 11:38:52 +00:00
Nick Treleaven
4eaa3c49e8 Try using UL macro instead 2023-01-04 11:38:52 +00:00
Nick Treleaven
3aa94941b3 Document dirEntries throws without read permission
Part of:
Issue 12391 - dirEntries throws in foreach

Add example showing how to handle subdirectory read permission failures.
2023-01-04 11:38:52 +00:00
Gabriel Dolberg
21d7d23d4f Typo: begining -> beginning 2022-12-26 20:22:08 +01:00
Nick Treleaven
fdab7cdef9 Remove unnecessary @trusted 2022-12-24 13:07:22 +00:00
Nick Treleaven
c27f250eb5 Tweak 2 tests 2022-12-24 13:06:37 +00:00
Nick Treleaven
d5c1067131
Fix Issue 23561 - std.typecons.Unique!struct does not destroy struct … (#8651)
Fix Issue 23561 - std.typecons.Unique!struct does not destroy struct …

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Razvan Nitu <razvan.nitu1305@gmail.com>
Merged-on-behalf-of: Razvan Nitu <razvan.nitu1305@gmail.com>
2022-12-24 13:40:54 +01:00
richard (rikki) andrew cattermole
13ef27a56e Fix issue 23540 - std.uni loadProperty aliases for C are incorrect 2022-12-24 12:26:02 +13:00
Razvan Nitu
67d4521c2c
Merge pull request #8617 from rikkimax/unicode_tables
Upstream the Unicode database table generator and update the tables to 15
2022-12-19 16:49:58 +08:00
Iain Buclaw
e89ca123e2 Merge remote-tracking branch 'upstream/stable' into merge_stable 2022-12-15 18:57:45 +00:00
Iain Buclaw
2a62b4c798 std.math.exponential: Add deprecations for calling log family functions with an integral argument 2022-12-13 00:56:49 +01:00
Iain Buclaw
8e799c14dc std.math.exponential: Implement log/log2/log10 for double- and float-precision 2022-12-12 19:59:05 +01:00
Iain Buclaw
6871f95111 std.random: Fix unittests on x32 ABI targets 2022-12-12 04:02:47 +01:00
richard (rikki) andrew cattermole
e848d44d7f Emphasize DO NOT EDIT for the generated Unicode tables 2022-12-12 04:32:30 +13:00
richard (rikki) andrew cattermole
297370abc2 Add URL for Unicode table generator into the headers of the Unicode tables 2022-12-12 02:10:14 +13:00
richard (rikki) andrew cattermole
a1f2e760e7 Make Unicode tables module headers consistent and add DO NOT EDIT to it 2022-12-12 02:10:14 +13:00
richard (rikki) andrew cattermole
122df9272a Upstream Unicode table generator and update tables to v15 2022-12-12 02:10:14 +13:00
H. S. Teoh
08be61029e Clarify that .uniq by default expects a sorted range. 2022-12-09 03:18:46 +01:00
Paul Backus
792c8b7c1d Fix typo in doc for std.algorithm.mutation.fill 2022-12-06 19:52:21 +01:00
RazvanN7
67155f04e7 Fix Issue 23319 - std.range.Generator does not work with non-mutable elements 2022-12-05 15:24:34 +01:00
Dennis
09275da681
Merge pull request #8623 from ntrel/safe-readln
Make std.stdio.File.readln @safe
2022-12-05 12:15:37 +01:00