Commit graph

483 commits

Author SHA1 Message Date
Sebastian Wilzbach
b82ae35fd7 Use void for auto function without return statement 2016-12-08 12:32:14 +01:00
Ilya Yaroshenko
4020810799 Merge pull request #4201 from andralex/better-overlap
Simplify overlap
2016-09-22 10:46:20 +03:00
Walter Bright
55e5737525 add 'scope' to opApply() parameter 2016-09-14 19:41:41 -07:00
Walter Bright
842f583b6b std.array: check for overflow on allocation sizes 2016-07-28 13:27:44 -07:00
SealabJaster
aa7385bdcc Improve documentation of std.array.insertInPlace 2016-07-18 15:38:21 +01:00
Dmitry Olshansky
f49908c56b Merge pull request #4578 from JackStouffer/unused-variables
Remove or Fix Unused Variables
2016-07-11 21:38:30 +02:00
Jack Stouffer
60808c7e1c Added const and immutable to unmodified variables in std.array 2016-07-08 12:07:41 -04:00
Jack Stouffer
0f7a01178b Removed unused variables from std.array 2016-07-08 11:36:30 -04:00
Atila Neves
2c4e4c76ce Add @system and @safe to std.array unit tests 2016-07-04 11:01:34 +02:00
Jack Stouffer
c8cbb67c05 Fixed std.algorithm imports in std.array to not be package wide 2016-07-02 17:38:18 -04:00
Walter Bright
f6ad90e511 Merge pull request #4513 from JackStouffer/local_imports
Start work on checking of too broad local imports outside of unit tests
2016-07-01 20:24:23 -07:00
Jack Stouffer
af1c22b6c8 Fixed local imports in std.array 2016-06-30 17:54:12 -04:00
Jack Stouffer
fdccd62396 Improved docs for std.array.join 2016-06-30 11:01:56 -04:00
Walter Bright
7fd0732d75 make std.array toString() @safe 2016-06-25 02:29:33 -07: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
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
anonymous
ef9722928c XREF_PACK_NAMED -> REF_ALTTEXT (sed)
Done by:

arg='\s*([^(),]*)'
from='\$\(XREF_PACK_NAMED\s'$arg','$arg','$arg','$arg'\)'
to='$(REF_ALTTEXT \4, \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
d648f9320e XREF_PACK -> REF (sed)
Done by:

from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +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
Martin Nowak
26ccb97965 fix variable name in replaceInto example 2016-05-14 21:42:25 +02:00
Jack Stouffer
3df9e2719e Fixed long lines in std/array.d 2016-05-10 20:51:39 -04:00
Jonathan M Davis
43227b12c4 Move some deprecations along. 2016-05-05 12:44:06 +02:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Andrei Alexandrescu
0fa6a50081 More detailed import 2016-04-24 15:29:14 -04:00
Andrei Alexandrescu
9bf145236b Simplify overlap 2016-04-24 15:29:14 -04:00
Yazan Dabain
9887af3fe6 Fix some imports 2016-04-12 22:15:09 +03:00
Ilya Yaroshenko
95ea08d50b fix imports 2 2016-04-07 15:54:04 +02:00
Jonathan M Davis
c3cd933131 Moving deprecations along.
This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
2016-02-10 16:43:25 -08:00
Jakob Øvrum
1be7e4650a Clarify std.array.assocArray docs 2016-01-08 02:06:36 +01:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Dragos Carp
75cbbef0ab Add asserts for the "compiles" tests 2015-11-16 03:04:07 +01:00
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
Brian Schott
67c95e6de2 Merge pull request #3715 from dcarp/AliasSeq
Rename obsolete TypeTuple to AliasSeq
2015-10-16 20:59:56 -07:00
Vladimir Panteleev
82590904f7 fix Issue 15208 - Eradicate all uses of "Enforcement failed" in Phobos 2015-10-15 23:44:44 +00:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
k-hara
8e11f0ebe2 fix Issue 10895 - incorrect std.array.join behavior with array of string-like class using alias this 2015-09-03 17:54:40 +09:00
David Soria Parra
f5fb09c91e Remove dead insert() comment
The comment about insert() is from 2011. insert() is long gone and insertInPlace
is the standard. No need to keep the old commented-out function around.
2015-08-29 02:10:24 -07:00
Dmitry Olshansky
a336f3c7bc Merge pull request #3497 from aG0aep6G/hasMember
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
H. S. Teoh
41abc0c5ec Add sameHead/sameTail to function list in docs. 2015-08-23 21:24:35 -07:00
k-hara
9d24ef3500 Add unittest for the fixed unlisted bug 2015-08-20 09:10:30 +09:00
k-hara
ea811edab9 Supplemental fix for issue 14925 - remove redundant conditions 2015-08-20 09:09:29 +09:00
Steven Schveighoffer
3f8b910e2c Fix issue 14925 -- merge overloads of replaceInPlace to avoid ambiguity
with template instantiation. Also, preclude narrow strings and other
invalid combinations (e.g. long[] and int[]) from being selected for
optimized path.
2015-08-19 11:45:02 -04:00
anonymous
dd2161705a std.traits.hasMember: just forward to __traits(hasMember, ...)
This way opDispatch'ed members are recognized.

Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Robert Schadek
1d251a5d78 Merge pull request #3147 from aceawan/add_example_sameHead
Add a use example to sameHead in array.d
2015-05-23 12:46:19 +02:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00