ZombineDev
52bf1876f7
Fix issue 20302 - Support head const in memoize
...
Make std.functional.memoize accept functions whose return type or
parameters are head const.
2019-10-16 14:14:37 +03:00
Paul Backus
5cba11a67d
Fix copy-paste error in std.functional.pipe doc
2019-08-11 11:03:43 -04:00
David Gileadi
775bcdee51
Turn on -preview=markdown
2019-07-04 10:28:30 -07:00
Sebastian Wilzbach
b56db9a061
Use selective top-level module imports in std.{functional,getopt,math,net,outbuffer}
2019-05-23 13:20:04 +02:00
Sebastian Wilzbach
8e68c90d5d
Use moved core.lifetime.forward for std.functional.forward
2019-01-31 15:57:31 +01:00
The Dlang Bot
3d41721141
Merge pull request #6497 from Zevenberge/feature/15732
...
Fix issue 15732 - std.function partial does not work with function / delegate references
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-07-15 13:06:31 +02:00
Zevenberge
7d1af27290
Checked that the functor passed to partial has some opCall
2018-07-01 12:02:56 +02:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Zevenberge
6ce1e5647d
Fix issue 15732 - partial invoke of delegates are not lvalues
...
Flipped the static if statements in partial. It now checks whether we get a template or a struct/class with opCall overloaded. Else it assumes we get a function.
2018-05-20 21:32:37 +02:00
Jack Stouffer
626cabcdc4
Added Params and Returns to std.functional
2018-04-19 20:13:34 -04:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
carblue
727c5cf8bd
[Trivial]std.functional: -dip1000 compilable by @safe => @system unittest
2018-03-27 10:07:32 +02:00
Sebastian Wilzbach
d179c82fb4
Deprecate binaryReverseArgs in favor of reverseArgs
2018-03-21 18:31:27 +01:00
Sebastian Wilzbach
c8d8fe0c83
Merge pull request #5348 from radcapricorn/forward
...
forward: single argument, copy const
2018-01-17 09:51:45 +01:00
Martin Nowak
deb28da3ee
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-08-16 12:17:39 +02:00
Sebastian Wilzbach
afcf16e1d8
std.functional: Fix more DDoc links
2017-07-21 03:42:02 +02:00
Sebastian Wilzbach
98aa8bd0df
Fix bookmark table for std.functional
2017-07-21 03:21:06 +02:00
Sebastian Wilzbach
598c563627
Add @safe to unittests to fix CircleCi
2017-07-19 01:09:16 +02:00
Sebastian Wilzbach
aefb5892a3
Merge pull request #4367 from wilzbach/fix_16079
...
Fix issue 16079 - memoize should work with arrays and objects
2017-07-19 00:28:43 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
2070d867dd
Sort multiple packages within one line
2017-06-12 08:18:25 +02: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
Stanislav Blinov
f34f7bbc25
forward: single argument, copy const
2017-06-11 04:15:25 +02:00
Sebastian Wilzbach
090d5164e8
Fix links from $(LREF $(D ...)) -> $(LREF ...)
...
sed -E 's/[$]\(D [$]\(LREF (.*)\)\)/$(LREF \1)/' -i **/*.d
2017-03-05 08:11:29 +01:00
Jack Stouffer
33521889fa
Merge pull request #5212 from wilzbach/remove-quickindex
...
Remove quickIndex for modules with booktables or only one symbol
2017-03-01 16:58:56 -05:00
Jack Stouffer
e554764c01
Merge pull request #5216 from wilzbach/unluckily-phobos
...
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Sebastian Wilzbach
3817d6f37d
Check public functions for public examples ( #4998 )
...
Check public functions for public examples
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-01 15:49:15 +01:00
Sebastian Wilzbach
c36f95280c
Remove quickIndex for modules with booktables or only one symbol
2017-03-01 03:59:22 +01:00
Sebastian Wilzbach
d548e8830a
Replace LUCKY links with actual links
2017-02-28 23:46:54 +01:00
Jack Stouffer
4ce5d44dbb
Use underscores for number literals with five or more digits
2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
0b33b50812
Automatically add spaces to binary operators (!=)
...
command:
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-23 00:57:47 +01:00
Sebastian Wilzbach
a2c6398332
Automatically add spaces to binary operators (==)
...
command:
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-23 00:57:47 +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
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Sebastian Wilzbach
9e58ecab2a
Fix issue 16079 - memoize should work with arrays and objects
2017-02-16 04:41:09 +01:00
Sebastian Wilzbach
8d5b051235
Provide reference to other common names
2017-02-16 02:57:51 +01:00
Walter Bright
e99a7f6184
std.functional: add overflow checks
2016-07-28 13:29:00 -07:00
Atila Neves
5d5ebb578a
Add @system to std.functional unit tests
2016-07-01 11:07:27 +02:00
Atila Neves
dc7fe7e593
Add @safe to some std.functional unit tests
2016-06-29 19:07:07 +02:00
Walter Bright
bde976683e
use covariant tests rather than exact ones
2016-06-24 15:44:47 -07:00
Andrei Alexandrescu
75ad1df66d
Merge pull request #4379 from joakim-noah/range_imports
...
std.range and std.functional: use locally-scoped selective imports and document module-scope symbol imports
2016-06-18 04:08:41 -04: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
Joakim
f07fe83ee3
std.functional: use locally-scoped selective imports and document symbols imported at module scope, checked with ddmd
2016-06-04 16:18:28 +05:30
Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00