Commit graph

62 commits

Author SHA1 Message Date
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Martin Nowak
eb6e63aad1 use proper partion-and-conquer for NoDuplicates
- partition NoDuplicates as well as EraseAllN
- factor out EraseAllN to optimize compile time/mem
2017-11-21 18:59:08 +01:00
Simen Kjærås
a6e9b151fe Fix issue 17995 2017-11-20 16:34:52 +00:00
Ilya Yaroshenko
2eb41fd1bc allow n=0 for std.meta.Repeat 2017-10-18 21:44:09 +07:00
Steven Schveighoffer
4a9549ec7d fix docs a bit. 2017-09-17 14:25:28 -04:00
Steven Schveighoffer
f3cec8bdd3 Fix issue 9591 - Allow Instantiate template to be public, give example
of how Instantiate + ApplyRight can be used to solve the problem.
2017-09-17 12:29:28 -04:00
The Dlang Bot
d68a6c3d8f Merge pull request #5638 from dlang/MetaLang-patch-1
Remove all mentions of TypeTuple from std.meta
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-07-21 00:51:42 +02:00
MetaLang
58989c347f Remove all mentions of TypeTuple from std.meta 2017-07-20 22:05:02 +02:00
Sebastian Wilzbach
caf274304e Mention TypeTuple at std.meta.AliasSeq 2017-07-20 21:00:36 +02:00
Sebastian Wilzbach
b6ea0d7d1a Add std.meta.Stride 2017-07-13 10:58:34 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
H. S. Teoh
442cd24c15 Hide bugfix unittest from ddoc.
This particular unittest does not give any additional information to the
user, and the bugzilla note only serves to confuse. So it should not be
part of the ddoc'd unittest.
2017-06-08 09:37:47 -07:00
Jonathan M Davis
07fddbb388 Move deprecations along. 2017-05-07 11:27:48 +02:00
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Stefan Koch
ecd689d604 correct anySatisfy docs 2017-01-11 05:52:04 +01:00
tsbockman
b46d832110 Optimize staticSort for partially sorted input.
`staticMerge` is very expensive, as it allocates a lot of compile time
memory.
2016-12-15 09:15:31 -08:00
tsbockman
345111f4b2 Add std.meta.staticIsSorted. 2016-12-15 09:12:34 -08:00
Martin Nowak
0f5b131d0a Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
        std/traits.d
2016-11-05 12:15:09 +01:00
somzzz
daf4d06d47 fixup 2016-11-01 06:25:46 -07:00
somzzz
e0ca51f9f0 fix issue 8799 2016-11-01 06:14:14 -07:00
Petar Kirov
be6571ca37 Resurrect ApplyLeft and ApplyRight's documentation
Also put the signature of `isImplicitlyConvertible` in a comment to make the example more clear.
2016-10-23 23:05:18 +03:00
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
Atila Neves
d599518eee Add @safe to std.meta unit tests 2016-07-01 11:14:48 +02:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Dmitry Olshansky
03d4171455 Merge pull request #4374 from mogucpp/master
make ApplyLeft/ApplyRight work with deep template
2016-06-08 11:51:32 +04:00
mogucpp
fad7eb0bf8 simplify Alias/ApplyLeft/ApplyRight impl, fix Issue 16070, more tests 2016-06-07 08:04:29 +08:00
Petar Kirov
6958c8179d Move allSatisfy, anySatisfy and staticIndexOf to searching in the quick index 2016-05-30 03:23:17 +03:00
Sebastian Wilzbach
f2e4aad20d Issue deprecation warning for deprecated IndexOf 2016-05-29 23:56:06 +02:00
Sebastian Wilzbach
ba2205e210 Add quickindex table to std/meta.d 2016-05-29 23:56:03 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Dmitry Olshansky
61dfd480bb Merge pull request #4155 from 9il/imports
optimize and reduce imports for `aliasSeqOf`
2016-04-26 20:14:53 +04:00
Ilya Yaroshenko
bbdf3bed26 optimize and reduce imports for aliasSeqOf 2016-04-26 15:56:38 +02:00
biotronic
4cb7c0199d Fix 14561 - Large enums cannot be parsed due to too many recursive template expansions 2016-04-03 16:47:36 +00:00
Martin Nowak
5fb53481fc fix Issue 15782 - Alias no longer strips qualifiers from user defined types
- introduce OldAlias for internal usage
- deprecate unqualifying of UDTs
- unfortunately deprecation message isn't shown in many use-cases
2016-03-20 16:49:42 +01:00
JakobOvrum
d5df74c507 Merge pull request #4088 from klickverbot/applyleftright
meta: CamelCase apply{Left, Right}
2016-03-17 16:04:08 +09:00
David Nadlinger
de843d5299 meta: CamelCase apply{Left, Right}
They return general templates, not values.
2016-03-16 16:50:12 +00:00
Superstar64
81ace2f346 added staticSort 2016-02-26 18:26:13 -05:00
H. S. Teoh
b2f1987cb3 Merge pull request #4007 from e10s/meta_repeat
Introduce std.meta.Repeat
2016-02-19 17:06:13 -08:00
H. S. Teoh
80c5318a38 Merge pull request #3985 from John-Colvin/publicAlias
make std.meta.Alias public and orthogonal to std.meta.AliasSeq
2016-02-19 11:35:16 -08:00
Kazuya Takahashi
ca28462781 Introduce std.meta.Repeat 2016-02-19 22:46:20 +09:00
H. S. Teoh
25aae21049 Merge pull request #3798 from JakobOvrum/std_meta_apply
Add std.meta.applyLeft and std.meta.applyRight
2016-02-17 10:39:49 -08:00
Jakob Øvrum
b04a0eabea Add std.meta.applyLeft and std.meta.applyRight 2016-02-17 22:52:24 +09:00