Commit graph

362 commits

Author SHA1 Message Date
Dmitry Olshansky
b7286e7444 generalize countLength 2012-12-13 20:41:20 +04:00
Dmitry Olshansky
96a22304d8 another -property error 2012-12-13 20:41:20 +04:00
Dmitry Olshansky
016a55a561 structs with postblit, CTFE, fix -property 2012-12-13 20:41:19 +04:00
Dmitry Olshansky
14e457b37d fix issue 4489 std.array.insert is slow 2012-12-13 20:41:19 +04:00
jmdavis
74f8c844fe Revert "Add alias opDollar and use $ in range slicing"
This reverts commit 07104b5fe6.

As we cannot currenly rely on even ranges with slicing implementing
opDollar, this change breaks code, because it assumes that such ranges
implement opDollar.
2012-12-09 17:21:37 -08:00
Alex Rønne Petersen
c850e68b03 Merge pull request #930 from epi/master
Added assocArray()
2012-12-09 11:33:59 -08:00
k-hara
07104b5fe6 Add alias opDollar and use $ in range slicing 2012-12-05 10:13:17 +09:00
k-hara
28dedee456 Issue 7444 - Require [] for array copies too 2012-11-20 17:55:21 +09:00
Jonathan M Davis
1536320ca1 Merge pull request #905 from monarchdodra/strip
strip and sameTail
2012-11-15 22:46:33 -08:00
Adrian Matoga
383f77c5ce fixed misleading doc for assocArray() 2012-11-14 11:02:27 +00:00
Adrian Matoga
908c1763e1 cleaner template constraints for assocArray() 2012-11-06 11:53:45 +00:00
Adrian Matoga
908680f6d4 Added assocArray() 2012-11-06 10:55:20 +00:00
Andrej Mitrovic
6f65897a6a Add comment about overlap being undocumented on purpose. 2012-11-02 15:10:49 +01:00
monarch dodra
b04b0695a3 Unittests for sameHead/sameTail 2012-10-28 11:54:33 +01:00
monarch dodra
efed1a0e36 Adding sameTail 2012-10-28 11:54:32 +01:00
monarch dodra
425c9d2b9f Allow R values with sameHead
Not much point in passing arrays by const ref when you can just pass by copy.
2012-10-28 11:16:28 +01:00
monarch dodra
8cb3c314d0 remove ctfe check in popFront!NarrowString 2012-10-16 12:56:08 +03:00
jmdavis
735c2adbda Changes required for issue# 6277. 2012-07-21 01:57:28 -07:00
Andrei Alexandrescu
70dcb958ea Merge pull request #661 from jmdavis/popFront
Performance improvements for popFront and narrow strings.
2012-07-15 20:35:09 -07:00
nazriel
f942906396 Runnable examples - std.array 2012-07-15 20:07:32 +00:00
Denis Shelomovskij
64f93b970a Replace typeof(<type>.init[0]) with templates
* ElementEncodingType (12)
* ElementType(1)
2012-07-11 12:58:40 -07:00
jmdavis
02931eb501 Revert "Merge pull request #664 from denis-sh/add-ArrayTarget-template"
This reverts commit f4d0a49493, reversing
changes made to 3cb69914c5.

The merging of request #664 was accidental, and it should not have been
merged. See https://github.com/D-Programming-Language/phobos/pull/664
for details.
2012-07-11 11:49:28 -07:00
k-hara
d6ffbd1328 Add const attribute more strictly 2012-07-11 01:02:59 +09:00
Denis Shelomovskij
00c0d61403 Replace typeof(<type>.init[0]) with templates
* ArrayTarget (12)
2012-07-06 13:38:06 +04:00
Denis Shelomovskij
ea6c9be477 Replace typeof(<type>.init[0]) with templates
* ElementEncodingType (12)
* ElementType(1)
2012-07-06 13:27:07 +04:00
jmdavis
cc1c2429ef Performance improvements for popFront and narrow strings. 2012-07-05 02:42:08 -07:00
jmdavis
5c3d219931 Fix for issue# 8233.
std.array.array fails to compile with ranges of immutable elements which have a length property
2012-06-13 01:44:25 -07:00
Jonathan M Davis
b6ddd05727 Merge pull request #617 from jmdavis/8187
Fix for issue# 8187.
2012-06-10 20:41:17 -07:00
jmdavis
4b5b11450d Slight tweak to save line count. 2012-06-04 00:48:27 -07:00
Dmitry Olshansky
92defbb4a0 save on line count 2012-06-04 11:42:47 +04:00
Dmitry Olshansky
b823cf6731 replaceInto baseline & unittest 2012-06-04 11:37:08 +04:00
jmdavis
453a6822c7 Fix for issue# 8187. 2012-06-02 22:57:04 -07:00
Brad Roberts
487fa80642 Merge pull request #582 from jmdavis/array
Improve the const-correctness of Appender and RefAppender.
2012-05-26 12:01:16 -07:00
jmdavis
1a4e2892b6 Removed deprecated functions which were to be removed in May 2012. 2012-05-23 00:51:12 -07:00
jmdavis
cc17f794e7 Improve the const-correctness of Appender and RefAppender. 2012-05-13 02:36:25 -07:00
k-hara
348f68a159 Add @property more 2012-03-19 21:28:18 +09:00
Brad Roberts
74d1eaf6d1 fix case of variable shadowing in unittest 2012-02-06 21:54:59 -08:00
Andrei Alexandrescu
ae112b9dea Merge pull request #314 from NilsBossung/bugzilla6874
(bugzilla 6874) disable the broken optimized path and fall back to append
2012-01-09 07:51:21 -08:00
k-hara
17e87a472d Revert "Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout""
This reverts commit fef20ede25.
2011-12-15 17:34:09 +09:00
Nils Boßung
5b9080e048 use .capacity 2011-12-06 22:30:42 +01:00
Nils Boßung
2fe6930f27 remove the broken optimization completely 2011-12-06 22:29:41 +01:00
Andrei Alexandrescu
6ac45d88af Merge pull request #328 from jmdavis/deprecations
Applied deprecations for November 2011.
2011-12-04 13:04:07 -08:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
jmdavis
afb5a1c7ce Applied deprecations for November 2011. 2011-11-21 00:24:57 -08:00
simendsjo
db8a7b4e51 Bug 2128 has been resolved 2011-11-06 16:53:23 +01:00
Nils Boßung
4110f56ac6 (bugzilla 6874) disable the broken optimized path and fall back to appender
Also add a unittest.
This doesn't properly resolve the issue, of course.
2011-11-03 22:49:27 +01:00
jmdavis
256976dddd Removed "scheduled for deprecation" pragmas.
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
k-hara
fef20ede25 Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout"
This change will be required after finxing bug6208.

This reverts commit e669812d26, reversing
changes made to 5ffd5b34e8.
2011-10-13 12:44:45 +09:00
k-hara
42324e028b fix6208 on inout 2011-10-02 22:08:46 +09:00
Andrei Alexandrescu
ed5b2878dc Merge pull request #168 from klickverbot/array-replace
std.array.replaceFirst() bug and doc fixes
2011-08-03 10:21:16 -07:00