Commit graph

476 commits

Author SHA1 Message Date
Walter Bright
e7aa772fb5 array.d: replace Error with assert() 2019-09-12 22:32:00 -07:00
Vladimir Panteleev
fe87dc7c42
Fix Issue 20186 - File size of "Hello, world" executable increased by 185KB
We can delay the std.format import until the relevant templates are
instantiated.
2019-09-01 03:24:17 +00:00
The Dlang Bot
858b1d4a46
Merge pull request #7134 from WalterBright/array-nad2
fix assocArray() unittests for no autodecode
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2019-08-16 01:16:26 +02:00
The Dlang Bot
5b83b74bf1
Merge pull request #7135 from WalterBright/array-nad3
fix unittests for array.join() for no autodecode
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
2019-08-15 10:28:27 +02:00
Walter Bright
ce46d9ae20 fix unittests for array.join() for no autodecode 2019-08-14 23:54:58 -07:00
Walter Bright
1d0153dc58 fix assocArray() unittests for no autodecode 2019-08-14 23:28:03 -07:00
Walter Bright
82f8d4030d fix array(String) to work with no autodecode 2019-08-14 22:38:21 -07:00
Walter Bright
fbbdb721a5 Appender and RefAppender: use opSlice() instead of data() 2019-07-31 17:12:01 -07:00
Robert Schadek
72d4cc7345 assert messages for std.array
more work on starting to work on dlang/phobos/project/2
2019-05-24 15:02:25 +01:00
Marco de Wild
b4756c2f5f
Improved error message when an assocArray can't be created 2019-05-12 00:19:58 +02:00
Walter Bright
b8b710f66e more scope for FormatSpec 2019-03-18 00:27:33 -07:00
Cameron Ross
fceed0d725
remove op param from ddoc 2019-01-23 04:57:00 -04:00
Cameron Ross
cae450bbf9
try to fix ddoc 2019-01-21 21:54:04 -04:00
Cameron Ross
e26cec8fdd
alias std.array.Appender.opOpAssign to put 2019-01-21 21:16:08 -04:00
Mathis Beer
7876c1d48d Fix issue 19572: Prevent Appender from implicitly calling struct constructors to cast away const. 2019-01-11 16:29:42 +01:00
Steven Schveighoffer
072463511c
staticArray needs to appear in jump table. 2018-12-26 17:38:44 -05:00
Sebastian Wilzbach
c7106f02b9
Merge pull request #6811 from edi33416/issue_13300
Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.en…
2018-12-23 11:23:05 +01:00
Eduard Staniloiu
fa19e3f5e7 Make ensureAddable and callers infer function attributes 2018-12-19 15:04:41 +02:00
Eduard Staniloiu
c575e985b3 Fix Issue 13300 - pure function 'std.array.Appender!(T[]).Appender.ensureAddable' cannot call impure function 'test.T.__fieldPostBlit' 2018-12-18 19:27:54 +02:00
Sebastian Wilzbach
49b4143b8e Remove isDynamicArray 2018-11-15 15:07:46 +10:00
Sebastian Wilzbach
bf5dc02f1a Fix Issue 9702, 10930 - std.array.replace cannot simple replace an element in array 2018-11-15 15:07:46 +10:00
The Dlang Bot
f961aa8686
Merge pull request #6155 from wilzbach/fix-5502
Fix Issue 5502 - More handy ways to create associative arrays
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-11-03 23:30:21 +01:00
dukc
84fe94c00e Removed an unittest of minimallyInitializedArray that can fail randomly 2018-10-31 12:38:38 +02:00
Sebastian Wilzbach
3cfe2c11fa Fix Issue 5502 - More handy ways to create associative arrays 2018-10-30 15:59:52 -04:00
The Dlang Bot
0994f692e2
Merge pull request #6711 from FeepingCreature/fix/join-unassignable-const-arrays
Fix issue 19257: std.array.join: only remove const if you can actually assign const to non-const values
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-10-03 01:06:34 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Mathis Beer
7a32298747 Fix issue 19257: Only remove const on .join if you can actually assign const to non-const values. 2018-09-21 11:43:40 +02:00
dukc
16881035dc Addressed Andrei's review. 2018-06-29 22:18:12 +02:00
Timothee Cour
e191a7d6a4 Fixes Issue 16745 - Add template helper for creating static arrays with the size inferred 2018-06-29 22:18:12 +02:00
Steven Schveighoffer
4fe18b9055 Fix issue 18995 - Make sure GC calls destructor when using std.array.array 2018-06-16 14:42:40 -04:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Johan Engelen
fcc5ac2102
Improve documentation of std.array.replace and replaceInto
Note that `replace` doesn't have a `sink` parameter. And for `replaceInto`, `sink` must always be defined.
2018-05-30 19:41:10 +02:00
Jack Stouffer
cd197654e7 Remove template wide trusted in std.array 2018-05-07 11:03:54 -04:00
Steven Schveighoffer
adaba541eb Remove version(unittest) imports to avoid extra imports in user code. 2018-04-12 15:46:56 -04:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Jack Stouffer
c3507beef4 Added params and returns to std.array functions 2018-04-05 12:32:34 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
7beea030c7 Added writer overload of toString to Appender 2018-03-13 10:15:59 -04:00
Jack Stouffer
13cf12dfda Fix Issue 18166 - std.array.replace should be usable in @safe for dstrings 2018-03-12 10:51:24 -04:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
cedretaber
0ad322a75a Prefer an appender to a dynamic array 2018-03-02 13:02:12 +09:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
1956daf34f Fix Issue 18341 - Documentation for std.array.split is confusing/incorrect 2018-02-19 22:50:03 +01:00
Sebastian Wilzbach
1c4153064e Remove public ddoc comment for a private symbol 2018-02-19 19:34:24 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jonathan M Davis
3385bd435a Move deprecations along. 2018-01-26 18:24:50 -07:00
Sebastian Wilzbach
41d158f4c7 Add substitute for lazy replacements 2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
66b522979e Merge remote-tracking branch 'upstream/stable' into merge_stable
https://github.com/dlang/phobos/pull/6017 back to `master`

See also: https://github.com/wilzbach/git-tools
2018-01-09 19:56:59 +01:00
Sebastian Wilzbach
7c0dab8d12 Fix Issue 18215 - std.array.replace throws a range violation if the from range is longer than the array 2018-01-09 18:51:34 +01:00
The Dlang Bot
380b248b87
Merge pull request #5986 from wilzbach/replaceslice-safe
Fix Issue 18186 - std.array.replaceSlice should be usable in @safe
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-01-04 08:33:56 +01:00