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
Harry T. Vennik
9706f6e360
Allow auto-implementing an interface while deriving from a base class.
...
- Added additional AutoImplement template which takes one extra
parameter, which specifies the baseclass to use.
- Added Self type parameter to private template AutoImplement_Helper.
- Get the constructor overloads from the baseclass of Self, rather
than from Base, which may be an interface.
- Added relevant unittests
This commit includes a manual changelog entry.
2017-07-29 12:23:53 +02:00
Sebastian Wilzbach
a42a2e191f
Add bookmark table to std.typecons
2017-07-24 20:55:27 +02:00
Jack Applegame
2e293eb6ed
Remove extra semicolon
2017-07-23 16:56:56 +03:00
Sebastian Wilzbach
4aaffede52
Merge pull request #4764 from tmccombs/unique-interface
...
Allow using Unique with interfaces
2017-07-21 23:18:17 +02:00
Sebastian Wilzbach
70f06b2357
Remove old, redundant private import access specifier
...
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:
sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
The Dlang Bot
681c74357a
Merge pull request #5517 from wilzbach/runnable-examples
...
Make Phobos module examples runnable
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-07-10 17:09:40 +02:00
Martin Nowak
effe4fda00
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-07-10 04:15:21 +02:00
Sebastian Wilzbach
28b521b700
Make std.typecons examples runnable
2017-07-09 16:22:53 +02:00
Jonathan M Davis
a7ea880eb2
Fix issue 17482: Fix Nullable!Variant equality checks.
2017-07-04 21:08:11 -06:00
Sebastian Wilzbach
10d05229ae
Make Phobos module examples runnable
2017-07-02 00:22:13 +02:00
Sebastian Wilzbach
a311ba161a
Remove hard-coded DScanner exclusion of std.traits and std.typecons
2017-06-30 04:47:36 +02:00
Sebastian Wilzbach
818deb3615
Fix DDoc macros
2017-06-30 01:39:24 +02:00
H. S. Teoh
46cfe3fcc1
Fix broken ddoc macro.
2017-06-29 11:11:17 -07:00
tsbockman
e63c620433
issue 15645 - Prevent unsafe usage of Tuple.slice
2017-04-22 08:14:54 -07:00
RazvanN7
df400d9dff
Fix Issue 17283 - std.experimental.typecons uses private module members
2017-04-03 12:55:49 +03:00
cjoan
37e1bbea3f
More edits to typecons.RefCounted
2017-03-29 01:44:38 -04:00
cjoan
abddd888f2
Fixed typos in RefCounted documentation.
2017-03-29 00:06:51 -04:00
cjoan
9c8a71ef6e
Clarify deallocation done by typecons.RefCounted.
...
I had trouble understanding how RefCounted!T was supposed to help me manage resources. These document changes should clarify the process and make it easier for others to understand.
This is follow-up after this post on the D learn forum: https://forum.dlang.org/post/qctmkqpqnreysxcjmrgm@forum.dlang.org
and after commits cd86cc25b6
and 33217eb46f
"Clarify deallocation done by std.typecons.Unique."
2017-03-22 13:04:29 -04:00
Thayne McCombs
70a9e2a503
Improve unit test for Unique with interface
2017-03-16 22:13:02 -06:00
Thayne McCombs
7cbea7473a
Remove trailing space
2017-03-16 21:40:55 -06:00