Commit graph

20500 commits

Author SHA1 Message Date
Dennis Korpel
bdc034d9d4 Silence buildkite style failure on std.range 2024-07-31 15:25:37 +02:00
Nick Treleaven
4641576812
Fix Bugzilla 20872 - std.array.assocArray trusts user-provided 'front… (#9036) 2024-07-31 20:07:23 +08:00
Nick Treleaven
4552211174
Fix Bugzilla 20870 - std.outbuffer.printf is trusted (#9037) 2024-07-31 20:05:48 +08:00
Nick Treleaven
9ffe71fea3
Fix Bugzilla 15315 - can break immutable with std.algorithm.move (#9032) 2024-07-29 06:49:54 +08:00
Nick Treleaven
7a14c896dd
Fix Bugzilla 14138 - std.parallelism.task breaks @safety (#9033) 2024-07-29 06:45:40 +08:00
Nick Treleaven
4d54884a49
Fix Bugzilla 24685 - std.stdio.File.rawRead allows reading raw pointers from files in @safe code (#9030) 2024-07-27 07:23:54 +08:00
Dennis
6b529def35
Merge pull request #9026 from dkorpel/std-array-testcase
Bugzilla 23300 - add testcase for std.array on scope InputRange
2024-07-26 23:00:12 +02:00
Denis Feklushkin
c00a5ee6a8 Adds check bounds of year to std.datetime.date.Date 2024-07-25 03:10:46 +02:00
Denis Feklushkin
8a7aee06a3
DEPRECATED_2.107 code removed (#9028) 2024-07-23 18:20:36 +08:00
Bastiaan Veelo
4b61e7dd55
Fix sharedLog assignment. (#8995)
* Allow `new shared FileLogger()`

* Address review comment

* Update documentation.

Fix Bugzilla 23487 - std.experimental.logger assigning FileLogger to sharedLog no longer works

* Comment on `trusted` section.

---------

Co-authored-by: Atila Neves <atila.neves@gmail.com>
2024-07-22 06:47:38 +08:00
Dennis Korpel
2959a22641 Bugzilla 23300 - add testcase for std.array on scope InputRange 2024-07-21 13:12:30 +02:00
Quirin Schroll
0050fb0c0f Address style errors 2024-07-21 15:17:16 +08:00
Quirin Schroll
4d5ba46083 Fix problems with reverse 2024-07-21 15:17:16 +08:00
Quirin Schroll
9a63e1c6b4 Address style errors 2024-07-21 15:17:16 +08:00
Quirin Schroll
0a1735bf15 Fix Lockstep attribute limitation 2024-07-21 15:17:16 +08:00
Nick Treleaven
33c643245a Expand goo.gl links that may break
Note: www.canonware.com/download/jemalloc/jemalloc-latest/doc/jemalloc.html jemalloc link isn't responding, and it now lives at jemalloc.net (see also https://github.com/jemalloc/jemalloc?tab=readme-ov-file#readme).

Fixes Bugzilla Issue 24667 - goo.gl is going away.
2024-07-19 12:19:43 +02:00
Dennis
d5780aa8f5
std.json: Document opEquals (#8975)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2024-07-19 10:52:14 +03:00
The Dlang Bot
82b745d217
Merge pull request #9023 from jtbx-patches/deadlinks
replace dead links

Signed-off-by: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2024-07-14 07:13:14 +02:00
Jeremy Baxter
7c68568353 std.stdio: fdopen is a POSIX library function
It's implemented in Windows but it's not part of standard C.

https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fdopen
2024-07-14 15:37:44 +12:00
Jeremy Baxter
f31a7bc41d replace dead links
for link in $(grep -Eor 'https?://[^\\)", ]+' | grep -v dlang.org \
| grep -Eo 'https?://.+'); do (printf "%s: " "$link"; curl -Is "$link" \
| head -n1) | grep -E '4..$'; done

for link in $(grep -Eor '\\$\\(HTTP .+, ' | grep -v dlang.org \
| cut -d' ' -f2- | sed 's/, .*$//'); do out="$(curl -Is "$link")"; \
(! [ $? = 0 ] || printf '%s' "$out" | head -n1 | grep -Eq '4..') \
&& printf '%s\\n' "$link"; done
2024-07-14 15:16:11 +12:00
Jeremy Baxter
581f473d24 fix minor spelling mistake 2024-07-08 08:09:37 +08:00
Jeremy Baxter
f176df8475 fix ddoc blunders
Caught with grep -Er '\(\$[A-Za-z]'
2024-07-08 08:09:37 +08:00
Dennis
a6ad1522a5
Move std.math.exponential.pow implementation outside template (#9019)
* Move `std.math.exponential.pow` implementation outside template

* Fix compilation on Mac
2024-07-03 10:22:25 +03:00
Dennis
0e17a64d0e
Merge pull request #9017 from 0-v-0/master
Remove std.conv import from quickSortImpl
2024-07-02 11:51:37 +02:00
Iain Buclaw
0c28620c30
Merge pull request #9020 from ibuclaw/merge_stable
merge stable
2024-07-02 10:14:58 +02:00
Iain Buclaw
36992a3026 Merge remote-tracking branch 'upstream/stable' into merge_stable 2024-07-02 06:20:25 +00:00
Iain Buclaw
992cc8337a Merge remote-tracking branch 'upstream/master' into stable 2024-07-01 22:50:35 +00:00
Dennis Korpel
312a86d741 Mark std.math.exponential.pow @safe 2024-07-01 01:20:46 +02:00
0-v-0
d8e8f1f351 Remove std.conv import from quickSortImpl 2024-06-22 11:07:40 +08:00
0-v-0
42e2caa5c0 Improve code readablitity in unittests 2024-06-21 18:35:03 +02:00
Dennis
b5d94743f3
Merge pull request #9007 from pbackus/improve-sumtype-examples
Improve std.sumtype examples
2024-06-17 12:01:00 +02:00
Nick Treleaven
4686927fb6 Document running a single unittest 2024-06-16 08:58:50 +02:00
Nick Treleaven
beeed12c06 Fix assigning const(void)[] to void[]
Needed for https://github.com/dlang/dmd/pull/16583.
2024-06-16 08:57:24 +02:00
The Dlang Bot
de1dea109f
Merge pull request #9015 from ibuclaw/merge_stable
merge stable

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2024-06-16 08:49:16 +02:00
Iain Buclaw
7ff7b842a8 Merge remote-tracking branch 'upstream/stable' into merge_stable 2024-06-15 22:33:30 +00:00
FeepingCreature
539dc473ba
Fix bugzilla issue 24596: std.typecons.Rebindable2: Don't destroy classes! Only destroy structs! (#9012) 2024-06-10 23:10:18 +08:00
Nick Treleaven
ad9f87d1b8 [std.bitmanip] Make 3 examples runnable 2024-06-04 00:53:04 +02:00
Nick Treleaven
ccd3115b8b [std.regex] Fix unsafe casts to bool
These are disallowed in `@safe` code with
https://github.com/dlang/dmd/pull/16558.
2024-06-03 16:27:09 +02:00
Iain Buclaw
45f7b06842
Merge pull request #9008 from ibuclaw/merge_stable
purge changelog
2024-06-02 12:30:05 +02:00
Iain Buclaw
05233556b2 Merge remote-tracking branch 'upstream/stable' into merge_stable 2024-06-02 09:19:38 +00:00
Iain Buclaw
aee2a7b760 purge changelog 2024-06-02 00:29:27 +00:00
Paul Backus
ed91e50deb sumtype: add list of examples to module doc
This will hopefully make it easier for readers to notice that all of
these examples exist.
2024-05-31 11:22:43 -04:00
Paul Backus
1aa99f8e3f sumtype: rename arithmetic evaluator example 2024-05-31 11:22:43 -04:00
Paul Backus
d1dfd094f4 sumtype: add overload-set matching example
This is a useful technique, and non-obvious enough that other D
community members were surprised when I showed it to them.

The unusual formatting and code layout used here achieves the following
goals:

1. Have this example appear below "Basic usage".
2. Have the overload set appear as it would at module level.
3. Have as much of the example code unit-tested as possible.

Goal (2), in particular, rules out the use of a "wrapper" struct to
create an overload set of static methods, which is the technique that's
normally used to include an overload set in a unittest block.
2024-05-31 11:22:43 -04:00
Paul Backus
e13bd7dec6 sumtype: remove match-by-introspection example
This technique has turned out not to be very useful in practice, and the
example is a bit subtle and tricky to understand. Removing it will make
room for more useful and less confusing examples.
2024-05-31 00:08:44 -04:00
Iain Buclaw
4040472f42
Merge pull request #9006 from ibuclaw/merge_stable
merge stable
2024-05-27 14:02:19 +02:00
Iain Buclaw
3a59a5a7cf Merge remote-tracking branch 'upstream/stable' into merge_stable 2024-05-27 09:41:34 +00:00
Martin Kinkelin
acd2013413 Get rid of obsolete CRuntime_DigitalMars support 2024-05-25 21:45:49 +02:00
Nick Treleaven
38fa9c3294 Fix Bugzilla 24564 - std.file.DirEntry throws Exception instead of FileException 2024-05-25 00:50:58 +02:00
Jonathan M Davis
976dbf6556
Merge pull request #9003 from benjones/fixGotoDecl
fix goto skipping over declaration
2024-05-20 15:32:29 -06:00