Mathis Beer
0e240076f3
Deprecate alias get this
in Nullable.
2019-06-13 13:51:05 +02:00
Sebastian Wilzbach
66991b4cd7
Use selective top-level module imports in std.{typecons,uni,utf}
2019-05-23 10:57:09 +02:00
The Dlang Bot
d57be4690f
Merge pull request #7000 from FeepingCreature/fix/issue-9029-fixes
...
Fix issues arising from the DMD 9029 fix (types match to alias)
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-12 00:24:45 +02:00
FeepingCreature
d33c1ebc10
Fix issues arising from the DMD 9029 fix (types match to alias)
2019-05-11 12:55:57 +01:00
The Dlang Bot
39d38166fe
Merge pull request #6902 from thewilsonator/thewilsonator-patch-1
...
Issue 3525 was fixed
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-05-10 01:21:39 +02:00
Sebastian Wilzbach
cbc4afc179
Merge pull request #6693 from n8sh/issue-19226
...
Fix Issue 19226 - std.typecons.Nullable(T, T nullValue) doesn't fully handle non-self-equal nullValue
2019-05-09 16:25:28 +01:00
Nicholas Wilson
e2ab79408b
Issue 3525 was fixed
2019-05-09 16:20:51 +01:00
Mathis Beer
4bc95f0fca
Fix issue 19799: add const toString to Nullable to avoid miscompilation in Nullable!string due to attempted implicit .get conversion to string
2019-04-10 15:46:11 +02:00
Sebastian Wilzbach
37e8593d35
Disable failing std.typecons unittest with -dip1000
2019-03-21 13:09:40 +01:00
Walter Bright
bc3dd0afda
Even more scope for FormatSpec
2019-03-18 01:28:47 -07:00
Nathan Sashihara
aba8660d75
Fix Issue 19226 - std.typecons.Nullable(T, T nullValue) doesn't fully handle non-self-equal nullValue
2019-02-23 07:21:21 -05:00
Sebastian Wilzbach
13705f53bd
Add a -betterC test for std.typecons.Tuple
2018-12-31 13:02:27 +01:00
Sebastian Wilzbach
c4c72930b8
Avoid injectNamedFields to be codegened
2018-12-31 12:55:24 +01:00
The Dlang Bot
c47be25959
Merge pull request #6820 from n8sh/issue-19526-19527
...
Fix Issue 19526 - make RefCounted work in betterC
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2018-12-30 23:32:04 +01:00
Nathan Sashihara
07b45c5528
Fix Issue 19526 - make std.typecons.RefCounted work in betterC
2018-12-30 13:58:25 -05:00
The Dlang Bot
b962752193
Merge pull request #6804 from edi33416/issue_18824
...
Fix Issue 18824 - [REG 2.080] Tuple's opBinaryRight takes precedence …
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-12-18 17:15:14 +01:00
The Dlang Bot
4435abf27e
Merge pull request #6808 from edi33416/issue_18755
...
Fix Issue 18755 - std.typecons.Rebindable breaks @safe-ty
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-12-17 20:47:25 +01:00
Eduard Staniloiu
dbca8521b5
Fix Issue 18755 - std.typecons.Rebindable breaks @safe-ty
2018-12-17 16:15:00 +02:00
Eduard Staniloiu
36a9dfaaf2
Fix Issue 18824 - [REG 2.080] Tuple's opBinaryRight takes precedence over appending a tuple to an array of tuples
2018-12-14 13:35:20 +02:00
Stanislav Blinov
c4324f405c
[deduplication] RefCounted
should use moveEmplace
...
...
...as per a comment in its implementation.
Not `@safe`, but `nothrow pure`; `calloc` if has pointers
2018-12-01 14:13:47 +03:00
Basile Burg
aad0e0d760
Remove AliasSeq
when __traits
is directly aliasable
2018-11-29 11:21:20 +01:00
Nathan Sashihara
dcca23edca
Fix Issue 19164 - malloc may be considered pure when failure results in program exit (no need to reset errno)
2018-11-17 17:00:16 -05:00
Sebastian Wilzbach
401b95a52d
Remove staticIota and mixinAll
2018-11-15 15:08:57 +10:00
Nathan Sashihara
f784f74dad
Fix Issue 19197 - Replace instances of typeid(T).getHash(..) with hashOf
2018-10-22 17:10:08 -04:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Simen Kjærås
ad8361b369
Fix issue 19240 - std.typecons.Tuple should check for reserved identifiers
2018-09-19 08:28:06 +02:00
Iain Buclaw
2d458405e1
std.typecons: Unittest isn't safe
2018-09-11 01:18:07 +02:00
Nathan Sashihara
6c65e24a8c
Merge pull request #6677 from MartinNowak/merge_stable
...
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-09-09 15:09:48 -04:00
Nathan Sashihara
947ba51707
Fix Issue 19236 - Replace runtime typeid(T).initializer().ptr is null
checks with compile-time __traits(isZeroInit, T)
2018-09-09 12:19:34 -04:00
Mathis Beer
b16ae5b8a5
Fix Issue 18682: Forward Nullable.toHash to contained value, if non-null.
2018-08-20 11:13:25 +02:00
The Dlang Bot
9e1870c053
Merge pull request #6527 from denizzzka/master
...
Adds const to Typedef.toString
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-08-04 07:05:34 +02:00
Mathis Beer
b0972bdda3
Nullable: with implicit destruction disabled, generate and test an explicit destructor that only runs if !isNull
2018-07-20 13:11:08 +02:00
Mathis Beer
4af38e5c73
Exploit unions to avoid destructor call to wrapped type in Nullable
2018-07-20 13:11:08 +02:00
Mathis Beer
11b4a15735
Add testcase for issue 19037
...
unittest fix
2018-07-20 13:11:08 +02:00
Mathis Beer
c1431b133b
Use move/moveEmplace in Nullable
...
Fixes issue 19037.
2018-07-20 13:11:08 +02:00
Martin Kinkelin
842cdc4d1c
std.typecons: Get rid of unnecessary core.stdc.uintptr_t import
...
Importing std.algorithm and std.range would previously import these
core.stdc.* modules:
core.stdc.stdint
core.stdc.config
core.stdc.stddef
core.stdc.signal
core.stdc.wchar_
core.stdc.stdarg
core.stdc.stdio
core.stdc.time
With this, only core.stdc.stdarg remains.
This is a big deal for bare-metal platforms without C libs, e.g.,
WebAssembly.
2018-07-19 20:30:22 +02:00
Sebastian Wilzbach
8115d50f14
Fix auto function without return statement
2018-06-28 10:58:14 +02:00
Walter Bright
6ce1a7ab81
typecons: add scope
2018-06-08 19:53:52 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Denis Feklushkin
20b0226be3
Typedef.toString for const types
2018-05-30 12:01:25 +07:00
Basile Burg
2cd3b5dac2
fix issue 18415 - Typedef ignores @disabled
default constructor
2018-05-18 20:23:33 +02:00
Quirin F. Schroll
7356009423
fix table and example in docs
2018-05-08 15:32:03 +02:00
Q. F. Schroll
07dffef19f
use unittest as an example
2018-05-08 01:56:37 +02:00
Q. F. Schroll
f73972eada
fix documentation
2018-05-08 01:55:10 +02:00
Q. F. Schroll
7f09359211
use static foreach instead of foreach (i, _)
2018-05-07 21:07:50 +02:00
Q. F. Schroll
35c4871e6f
justification does not fit a formal documentation
2018-05-07 21:01:18 +02:00
Q. F. Schroll
961ad8c33d
remove unnecessary template
2018-05-07 21:00:39 +02:00
Sebastian Wilzbach
79b8fd63ad
Merge pull request #6457 from n8sh/issue-18766
...
Fix Issue 18766 - std.typecons.Tuple.toHash could be improved
2018-05-03 01:53:37 +02:00
Nick Treleaven
a7c1d1ae2a
Clarify that Nullable!T.get doesn't always throw
2018-04-23 18:51:38 +02:00
Nick Treleaven
778cdaac51
get doesn't throw in release mode
2018-04-23 18:51:38 +02:00