Commit graph

4086 commits

Author SHA1 Message Date
Sean Kelly
9be950356b Converted "static this" to "shared static this" where appropriate. 2010-03-09 03:54:06 +00:00
Walter Bright
77693962d7 need cast to initialize immutable types 2010-03-02 06:46:39 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
David Simcha
35e5e25943 Bug 3763: readlnImpl() horribly inefficient and overflows stack. 2010-02-19 03:20:08 +00:00
David Simcha
70512d50d5 Added toDelegate. 2010-02-19 03:14:19 +00:00
Andrei Alexandrescu
02e6b1964e Appended () to function call 2010-02-18 02:52:35 +00:00
Walter Bright
1afffb7a96 update use of allMembers 2010-02-10 09:33:46 +00:00
Andrei Alexandrescu
6902b795c9 Issue 3738 - MinstdRand0 and MinstdRand very poor performance 2010-01-24 23:02:14 +00:00
Don Clugston
75f4f5e0d8 Fix 2066 to!(string)(int) into CTFE-compatible 2010-01-18 08:57:28 +00:00
Andrei Alexandrescu
7f2857b335 Changed mkdir --parents to mkdir -p due to OSX 2010-01-15 03:05:21 +00:00
Walter Bright
6a214523ae so library builds 2009-12-23 21:16:58 +00:00
Don Clugston
3b75480359 Support pow(int, int) in preparation for improvements to ^^. 2009-12-21 09:30:40 +00:00
Walter Bright
c3347e001a cannot have { } initializer with constructors 2009-12-20 20:34:47 +00:00
Walter Bright
26988249b7 inout to ref 2009-12-19 07:47:36 +00:00
Walter Bright
d340dab9f3 inout to ref 2009-12-19 07:46:41 +00:00
Walter Bright
38796ee285 added auto ref functions 2009-12-16 08:55:42 +00:00
Walter Bright
5caa3b1ddf anything I forgot 2009-12-06 02:34:20 +00:00
Walter Bright
9ab2214df8 wrong module prefix 2009-12-02 08:19:05 +00:00
David Simcha
e54374a02d bugzilla 3311: std.range.chain shouldn't have opIndexAssign if arguments aren't mutable. 2009-12-01 14:17:11 +00:00
David Simcha
ff54d867e4 bugzilla 2977: std.random.unpredictableSeed() should use thread ID somewhere 2009-12-01 14:09:48 +00:00
David Simcha
868dc726a2 Unlisted bug in array(): Arrays scanned by GC even if they don't need to be. 2009-12-01 13:52:15 +00:00
David Simcha
489556e166 Bug 2802: VariantN.opCmp!(T) fails when T != VariantN 2009-12-01 13:46:11 +00:00
Don Clugston
a8cb0ed7b0 Added asm versions of atan2, asin, acos, atan -- closes bug 2664.
Inverse trig functions are now pure nothrow.
Added FloatControl, IeeeFlags for enabling floating-point exceptions.
Added unittests for exp().
2009-11-30 10:30:46 +00:00
Andrei Alexandrescu
4c57189000 Optimization in replace: if the searched string is not found, return the original string 2009-11-30 01:10:18 +00:00
Andrei Alexandrescu
e7df1a56b7 Removed spurious assert(false) from StdioException 2009-11-30 01:08:21 +00:00
Walter Bright
1b0d9811c3 fix opEquals type 2009-11-22 08:38:36 +00:00
Walter Bright
78d04c9566 static array initializers still have old behavior 2009-11-21 10:10:28 +00:00
Walter Bright
9d92f3b3af so phobos unittests work again 2009-11-21 07:53:47 +00:00
Don Clugston
b42fa81208 fixed typo in docs 2009-11-20 13:57:39 +00:00
Jeremie Pelletier
4c0b18cd02 Added json.d module. 2009-11-18 03:42:36 +00:00
Walter Bright
f8b01a88a5 fixe makefile for 64 bits 2009-11-13 02:31:11 +00:00
Don Clugston
df16d2a797 Fix broken win32 makefile 2009-11-06 16:47:21 +00:00
Don Clugston
1eea3f3895 Removed all references to float.min, replaced with float.min_normal. 2009-11-06 16:02:45 +00:00
Walter Bright
3a8e91385b update makefiles for druntime 2009-11-03 19:24:51 +00:00
Don Clugston
0ecae3a354 Change [length] to [$] throughout Phobos. 2009-11-03 07:55:49 +00:00
Don Clugston
5f3996a579 Workaround for bug 2479. 2009-11-02 07:55:27 +00:00
Andrei Alexandrescu
13e83e2998 Changed isSame following string literals having become lvalues 2009-10-28 03:34:17 +00:00
Andrei Alexandrescu
dbd4e31f19 Minor optimization in decode 2009-10-27 03:29:55 +00:00
Andrei Alexandrescu
904f56e34a Added count function and changed the encode function to take fixed-size array by reference. 2009-10-27 03:28:06 +00:00
Andrei Alexandrescu
144c9108de added alias expand for Tuple.field 2009-10-27 00:12:43 +00:00
Andrei Alexandrescu
45508f1497 Reinstated some unittests; fixed Cycle to work with the new fixed-size arrays; fixed bug in Transposed 2009-10-27 00:09:51 +00:00
Andrei Alexandrescu
6ecb61207e Added static checks for the parameters of the linear congruential generator 2009-10-26 22:51:14 +00:00
Andrei Alexandrescu
aa2face235 Added gcd 2009-10-26 22:50:22 +00:00
Andrei Alexandrescu
f81fe9940e Added explicit pass-by-ref to all fixed-length buffers 2009-10-26 22:48:12 +00:00
Andrei Alexandrescu
449025e4d7 Added function count() 2009-10-26 22:45:37 +00:00
Andrei Alexandrescu
c12b96b726 Implementation change and unittest for isLeapYear and
daysInYear. Made both pure as well.
2009-10-26 22:44:01 +00:00
Andrei Alexandrescu
b91c592ac8 Add pure to isalnum, isalpha, iscntrl, isdigit, islower, ispunct, isspace, isxdigit, isgraph, isprint, isascii, toupper 2009-10-26 22:41:15 +00:00
Andrei Alexandrescu
579d23419c Line length adjusted to under 80 characters 2009-10-26 22:38:50 +00:00
Andrei Alexandrescu
a6e1588b8c Added hasLength requirement to topN; implemented topN for two non-adjacent ranges; added replaceTop function to BinaryHeap; changed BinaryHeap.top to return ref. 2009-10-26 22:35:27 +00:00
Walter Bright
478c52201b update for value static arrays 2009-10-24 02:38:26 +00:00