Nick Treleaven
9f336484dc
[typecons] Tweak Tuple example and split out Rebindable example
2022-01-10 14:03:09 +00:00
Jan Jurzitza
a5c3c24b71
std.stdio: clarify "not opened" documentation
...
when the code is `!isOpen` it now means:
- in exception documentation it's now always saying "not opened" (or similar, it's clear the file is in error state in that case)
- in general documentation it now always says "closed or not yet opened" (to avoid mistaking it with eof)
- in runtime error messages it always says "unopened"
2022-01-10 12:47:47 +00:00
João Lourenço
b901b5fb50
std.variant: Add Variant unittests for 'null' comparisons
...
Fix Issue #22647 - [std.variant.Variant] Cannot compare types compliant with null comparison with 'null'
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2022-01-10 11:35:15 +00:00
João Lourenço
5f14dc0305
std.variant: Fix Variant not correctly comparring allowed types with null
...
Some types can be compared with 'null', for example arrays and
pointers. Not complying with this creates a difference between the
Phobo's Variant implementation and the core language behaviors which can
lead to some confusion.
Refers: #22647
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2022-01-10 11:35:04 +00:00
Walter Bright
374eefefbf
Comment out randomly failing test in std.experimental.allocator
2022-01-08 21:14:11 -08:00
The Dlang Bot
fc3985a200
Merge pull request #8336 from atilaneves/logger
...
Fix issue 22532 - change default log level to LogLevel.warning
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Signed-off-by: Steven Schveighoffer <schveiguy@users.noreply.github.com>
Merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2022-01-07 08:32:30 +00:00
Gabriel Dolberg
67c546a828
✏️ fix typos in docs
2022-01-05 22:09:24 +00:00
João Lourenço
5f1657565f
std.variant: Fix incorrectly written unittets
...
Fix Issue 22648 - [std.variant.Variant] Incorrectly written unittests
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2022-01-04 00:42:12 +00:00
Atila Neves
522f953ae1
Add comment saying that the default log level is LogLevel.warning
2022-01-03 18:34:51 +01:00
Atila Neves
13eff04704
Address review comments
2022-01-03 15:14:33 +01:00
Atila Neves
38a8bcbc04
Fix issue 22532 - change default log level to LogLevel.warning
2022-01-03 15:14:33 +01:00
wolframw
befeb005c9
Fix Issue 21457 - std.functional.partial ignores function overloads
2022-01-03 13:21:35 +00:00
wolframw
4687883231
Fix Issue 18051 - missing enum support in formattedRead/unformatValue
2021-12-31 10:28:04 +00:00
wolframw
dc697c8dd8
Fix Issue 22105 - std.container.array.Array.length setter creates values of init-less types
2021-12-28 23:33:31 +00:00
wolframw
ef9ed4fa19
Fix link in documentation
2021-12-25 03:32:26 +00:00
dkorpel
0eb2fb7aaa
Make phobos compile with pure-scope fix
2021-12-23 18:52:04 +01:00
Razvan Nitu
0411974508
Merge pull request #8342 from WalterBright/uniscope
...
add some scope to std.uni.package
2021-12-23 18:52:45 +02:00
Razvan Nitu
3d9dce5dbd
Merge pull request #8341 from WalterBright/scopeput
...
put scope on std.utf.encode() functions
2021-12-23 18:52:24 +02:00
Walter Bright
e9a35fd9c9
add scome scope to std.uni.package
2021-12-23 01:43:14 -08:00
Walter Bright
d23bd5be73
try putting scope on put() parameter
2021-12-23 01:10:56 -08:00
wolframw
cab079a276
sumtype: remove redundant "See Also" in tryMatch documentation
2021-12-22 21:24:30 +00:00
Per Nordlöw
495e835c2d
Add unittest for issue 22609
2021-12-20 00:36:36 +00:00
Paul Backus
e862f06eaf
Fix issue 22608 - RandomAccessInfinite is not a valid random-access range
...
Previously, isInfinite!(RandomAccessInfinite!T) would always evaluate to
false, because the 'empty' method inherited from InputRange could not be
evaluated at compile time. Since isRandomAccessRange!R requires
(isBidirectionalRange!R || isInfinite!R), this meant that
RandomAccessInfinite!T was not recognized as a random-access range.
2021-12-19 02:48:10 +00:00
Eduard Staniloiu
95d47777f9
Fix typecons Proxy.opCmp
2021-12-17 17:13:48 +00:00
Atila Neves
575b67a9b4
Ignore SECURITY file when listing timezones
...
On Arch Linux, there's an ASCII file in /usr/share/zoneinfo with
instructions on how to submit security bug reports, as can be
seen in the listing here:
https://archlinux.org/packages/core/x86_64/tzdata/files/
2021-12-13 19:17:33 +00:00
Martin Nowak
c0b9de79e3
Merge remote-tracking branch 'upstream/stable' into merge_stable
2021-12-12 22:38:03 +01:00
Anton Curmanschii
de7ad2282e
Fix a potential memory leak, typos
...
On line 2741, `if (nBytesNeeded < maxStack)` will force memory allocation in the case when `nBytesNeeded == maxStack` , even though it's not technically required, because the stack buffer can hold those bytes.
On line 2762 though, the check `if (nBytesNeeded > maxStack)` is slightly wrong then. If `nBytesNeeded == maxStack`, it would cause a memory leak.
The fix is to not allocate if they're equal.
2021-12-12 05:39:12 +00:00
João Lourenço
f25b3fc78e
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool ( #8330 )
...
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-12-10 15:16:45 +00:00
Razvan Nitu
6ce7a5f06f
Merge pull request #8317 from DoctorNoobingstoneIPresume/211114_std_regex_Doc_Synopsis_01h
...
std.regex: Doc: Synopsis: Fix typo&spacing, clarify "letters only" example.
2021-12-10 15:53:59 +02:00
Stanislav Blinov
12329adb67
schwartzSort to use pureMalloc so it's more pure
...
That way it's only impure for transformations that yield
indirections, and that's because (de-)registering memory
ranges with GC is impure.
2021-12-09 07:27:56 +00:00
Mathis Beer
0a228d72a8
Fix issue 22561: Allow joiner to reassign range values that contain immutable fields.
2021-12-03 14:10:32 +01:00
thaven
47291bb0e6
Temporarily comment out overload in test to work around Issue 19715
2021-12-03 14:07:14 +01:00
Harry T. Vennik
eeccd10f8b
Add specific test for parent alias
2021-12-03 14:07:14 +01:00
Harry T. Vennik
443c5d400f
Also expose 'parent' when it's abstract
2021-12-03 14:07:14 +01:00
Per Nordlöw
0425866dcd
Fix Issue 22557 - std.traits.fqnType is missing support for typeof(null)
2021-12-01 10:29:22 +00:00
Iain Buclaw
7a447e7865
std.random: Fix test for version(X32) targets
2021-11-30 13:25:09 +00:00
DoctorNoobingstoneIPresume
ae900ac6c6
std.regex: Doc: Synopsis: Fix typo&spacing, clarify an example, add another.
2021-11-27 23:21:11 +02:00
dkorpel
ea76f45494
Use return scope
instead of just return
2021-11-26 17:03:06 +01:00
dkorpel
5d0cfcd13a
Fix scope
usage of SysTime/TimeZone
2021-11-18 23:49:51 +00:00
Martin Kinkelin
62780daf85
Prefer __traits(initSymbol) over TypeInfo.initializer()
2021-11-17 05:12:47 +00:00
dkorpel
cd7389266e
Add explicit return
to inout
functions
2021-11-16 23:22:33 +00:00
Ömer Faruk IRMAK
e84de9faae
Fix Issue 22511 - Add explicit copy ctor for Nullable
2021-11-15 11:33:51 +03:00
Ömer Faruk IRMAK
bd090534a4
Add explicit default ctor for DList.PayNode
...
Worksaround Issue 22510 (https://issues.dlang.org/show_bug.cgi?id=22510 )
which prevented us from using structs with explicit copy ctors with DList.
2021-11-15 11:32:16 +03:00
Ömer Faruk IRMAK
b141ae469b
Fix Issue 22511 - Add explicit copy ctor for Nullable
2021-11-15 10:33:27 +03:00
Ömer Faruk IRMAK
61d3fe3293
Add explicit default ctor for DList.PayNode
...
Worksaround Issue 22510 (https://issues.dlang.org/show_bug.cgi?id=22510 )
which prevented us from using structs with explicit copy ctors with DList.
2021-11-14 14:50:23 +03:00
Imperatorn
112e3a3ec4
Using LINK macro
...
Using LINK macro instead of escaping seems to work
2021-11-11 08:32:02 +01:00
Imperatorn
cf71d70b19
Fix broken link
...
@ is not encoded. Replaced with %40
2021-11-10 22:38:51 +01:00
Petar Kirov
dfaaf8fa53
Merge remote-tracking branch 'upstream/stable' into merge_stable
2021-11-09 10:30:28 +02:00
MoonlightSentinel
c0981769a0
Fix 22487 - Don't access payload for unititialized array data
...
Explicitly return `[]` when `store` wasn't intialized yet.
2021-11-08 05:40:08 +00:00
MoonlightSentinel
a22571f59a
Fix 22488 - Add inout to allow Array.data for const/immutable Array's
...
Simply propagate the const'ness to the return slice.
2021-11-08 05:34:08 +00:00