The Dlang Bot
df68d4c42c
Merge pull request #6218 from denizzzka/typedef_tostring
...
Adds Typedef.toString()
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2018-03-01 15:24:03 +01:00
Denis Feklushkin
636a0f9c97
Adds Typedef.toString
2018-03-01 13:09:46 +07:00
drug007
35c5a3925c
Fix #18539 - add regression test
2018-02-28 19:18:12 +01:00
Sebastian Wilzbach
fb070e1a06
Make test for an unsafe enum more explicit
2018-02-24 15:03:25 +01:00
Sebastian Wilzbach
6dbc8d00d7
Use DStyle for the if constraints
2018-02-24 14:56:57 +01:00
Martin Nowak
327fec1946
add opDispatch-based property access to BitFlags enum
...
- allows to use BitFlags similar to a struct with many boolean flags
- allows for less brittle flag test
(`flags.featureX` vs. `(flags & FlagsEnum.featureX)`)
- allows for clear set/unset
(`flags.featX = false` vs. `flags &= ~FlagsEnum.featX`)
- allows for simpler testing of combined (unsafe) flags
(`flags.combined` vs.
`(flags & FlagsEnum.combined) == BitFlags!(FlagsEnum, Yes.unsafe)(FlagsEnum.combined)`)
2018-02-24 14:35:05 +01:00
Martin Nowak
09926f9837
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-02-23 21:37:12 +01:00
Jack Stouffer
8c67a25f16
Added writer version of toString to Nullable
2018-02-20 16:39:10 -05:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
MetaLang
e729f1ca04
Change "enum" to "enums"
2018-02-17 14:11:39 -04:00
Sebastian Wilzbach
75ef5e9228
Split unittests of BitFields
2018-02-16 07:39:29 +01:00
Sebastian Wilzbach
163727c5de
Split unittests of isBitFlagEnum
2018-02-16 07:39:29 +01:00
Sebastian Wilzbach
4349392b34
Use static foreach
2018-02-16 07:39:29 +01:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
The Dlang Bot
976cb990f1
Merge pull request #6014 from wilzbach/complex
...
Start to move away from complex and imaginary types
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-18 22:34:40 +01:00
H. S. Teoh
7dae6f3a52
Need to avoid .destroy for interfaces too.
2018-01-17 11:33:33 -08:00
H. S. Teoh
a63f3c8f9c
Add test case.
2018-01-17 11:07:26 -08:00
H. S. Teoh
5b04f45571
Fix issue 17440: do not call .destroy on class instances in .nullify.
2018-01-17 11:07:26 -08:00
Sebastian Wilzbach
a972e266ed
Allow running all unittest with -transition=complex
2018-01-17 11:14:32 +01:00
Jack Stouffer
dc291a16e4
Changed all instances of FormatSpec to const ref
2018-01-04 10:05:16 -05:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
...
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
9f492c1c2c
@safeify more unittests
2018-01-03 05:44:04 +01:00
The Dlang Bot
0ba08bb653
Merge pull request #5953 from wilzbach/fix-5489
...
Fix Issue 5489 - std.typecons tuples dynamically iterable
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2017-12-21 22:39:47 +01:00
Sebastian Wilzbach
9c514c1068
Remove global debug import in std.typecons
2017-12-21 15:52:51 +01:00
Sebastian Wilzbach
059be4da3a
Fix Issue 5489 - std.typecons tuples dynamically iterable
2017-12-21 15:24:37 +01:00
Andrei Alexandrescu
5e54cf7db4
Dramatically faster to compile Tuple
2017-12-19 05:06:43 +01:00
The Dlang Bot
9503a1e11e
Merge pull request #5855 from FeepingCreature/master
...
Handle structs with @disable this in Nullable
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-12-04 15:49:09 +01:00
Mathis Beer
ee2db52ac4
fix concat operator spacing for Nullable
2017-11-27 18:03:35 +01:00
MetaLang
47fa4b8685
Remove extraneous whitespace
2017-11-22 16:16:25 -04:00
Kevin De Keyser
6d95cc200d
Changed to a char tuple for the unittest
2017-11-22 16:58:13 +01:00
Kevin De Keyser
77ac8f1622
Made a unittest independent of IEEE floating point control
...
Converting a double to a string doesn't work for all rounding modes.
I propose storing the rounding mode before doing the unittest, which changes the unittest from @safe to @system.
2017-11-22 15:32:26 +01:00
Kevin De Keyser
2395a9ef98
Fixed a rounding mode error in a unit test.
2017-11-22 15:06:31 +01:00
Mathis Beer
f824bf45e1
fix minor style issue
2017-11-21 10:44:00 +01:00
Mathis Beer
8faf51f363
use = T.init instead of = void because it's @safe
2017-11-21 10:43:51 +01:00
Mathis Beer
61d53a1ad4
fix Issue 14477 - Nullable does not work with structs with default constructor disabled
...
Add unittest, improve error message a bit.
2017-11-14 08:47:02 +01:00
Basile Burg
c9f2158b59
fix issue 12064 - std.typecons.wrap doesn't handle NVI
2017-11-13 13:41:19 +01:00
Mathis Beer
d2c3b5d57d
Handle structs with @disable this in Nullable
2017-11-10 15:48:28 +01:00
Sebastian Wilzbach
97f6f39e4e
Change AliasSeq(0, ...) uses of foreach to static foreach
2017-11-02 17:11:37 +01:00
Eduard Staniloiu
f0bae44334
Ternary opBinary should be able to take bool
2017-10-24 14:34:25 +00:00
The Dlang Bot
2d2592f538
Merge pull request #5758 from jercaianu/rmdir
...
Make DirEntry and DirIterator safe
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-10-16 18:02:10 +02:00
The Dlang Bot
f24da9d895
Merge pull request #5725 from RazvanN7/Issue_4582
...
Fix Issue 4582 - distinct field names constraint for std.typecons.Tuple
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2017-10-12 15:20:30 +02:00
RazvanN7
9af56d0223
Update distinct function + add unittest for it
2017-10-12 15:22:36 +03:00
Alexandru Jercaianu
ac8bbf42df
added trusted to refCountedPayload in docs
2017-10-07 20:55:46 +03:00
RazvanN7
99b5fc1809
Add unittest
2017-10-02 11:34:08 +03:00
RazvanN7
4e8fa84ba2
Fix Issue 4582 - distinct field names constraint for std.typecons.Tuple
2017-09-27 14:08:52 +03:00
Simen Kjærås
ba2a1cee17
Fix issue 17803 std.typecons.Tuple: opAssign should return ref Tuple
2017-09-07 08:28:26 +02:00
RazvanN7
1c071c2176
Fix Issue 9183 - Add a Nullable.get(x) overload
2017-08-21 10:15:36 +03:00
The Dlang Bot
7bf3794649
Merge pull request #5408 from thaven/autoimplement_with_baseclass
...
AutoImplement with baseclass
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-08-01 08:20:22 +02:00