SHOO
7cd2e0339e
std.datetime: Added benchmark
...
This function came from std.date.
But now, benchmark returns Ticks[N] and don't use result argument.
I removed need to use GC for by doing it in this way.
2010-09-18 11:04:14 +00:00
SHOO
3f7580f002
Added std.datetime
...
1. deprecate std.perf (I added pragma(msg, "...").)
2. Define std.datetime, paste std.stopwatch in it.
I look at the state about the time handling.
2010-09-18 06:20:26 +00:00
Shin Fujishiro
430021772b
std.typecons: Remove swap() in Tuple's constructor for now (it's incorrect if U != typeof(this)).
2010-09-18 06:07:19 +00:00
Shin Fujishiro
c6920e33cb
Fixed access violation due to std.typecons.Tuple.
...
Suppressed the codegen for a dummy opAssign that is there just for a workaround of the bug 4424.
2010-09-18 06:07:09 +00:00
Shin Fujishiro
75592dc0f3
Workaround: std.typecons fails depending on the order of compilation.
2010-09-18 01:27:48 +00:00
David Simcha
ab60a7d7a1
Fix std.range.Zip.
2010-09-18 00:48:42 +00:00
David Simcha
5bc6e09d2b
Mitigate const issues in std.range. Everything except Zip now at least works with const/immutable arrays of primitives.
2010-09-18 00:34:20 +00:00
David Simcha
e51eeec660
Bug 4882: std.traits hasUnsharedAliasing does not work for function type, plus unlisted bug: interfaces not considered to have indirection, aliasing, etc.
2010-09-17 23:43:54 +00:00
Shin Fujishiro
10f0c7c702
std.typecons: Several improvements to Tuple.
...
- Tuple members are now accessible with the syntax a[0], a[1] etc.
- Eliminated an internal union (see bug 4421 and 4846). Re-implemented named members with alias.
- Worked around bug 4424. Got opAssign back.
- Made Tuple.slice!(from, to) to preserve field names if any.
- Added isTuple!(T) template.
- Removed the 'default constructor' that is never called.
- Changed Tuple.toString() to use formattedWrite() instead of the `static if (is(to!string...))` thingy.
2010-09-17 21:40:15 +00:00
Shin Fujishiro
8e9c9a61ec
Fixed unlisted bug: std.typetuple.staticMap!() doesn't work with empty/single tuples.
2010-09-17 21:40:05 +00:00
Shin Fujishiro
5adac0d493
Fixed unlisted bug: std.exception.pointsTo() calls postblit on subobjects.
2010-09-17 21:39:52 +00:00
Lars T. Kyllingstad
255421a7af
Fixed std.process.environment unittest to account for yet another Wine bug.
2010-09-17 08:48:44 +00:00
David Simcha
a1c63984cc
Fix debug code in SortedRange.
2010-09-17 04:06:56 +00:00
David Simcha
a0162ed834
Make SortedRange work with const/immutable arrays.
2010-09-17 00:32:28 +00:00
Andrei Alexandrescu
bf93b229c1
Replaced the random number generator with a cheaper one in SortedRange's constructor
2010-09-16 18:22:48 +00:00
Andrei Alexandrescu
627023c5d9
Fixed unlisted bug in SortedRange's constructor
2010-09-16 18:15:30 +00:00
David Simcha
72d6bf1217
Add back lowerBound, upperBound, canFindSorted, equalRange to std.algorithm, but with "scheduled for deprecaton" pragmas on instantiation.
2010-09-15 23:02:23 +00:00
David Simcha
f252d5e611
Support pointers to structs in std.range.put().
2010-09-15 22:41:50 +00:00
Don Clugston
3c369fa19e
4872 std.bigint problem with negative numbers
...
This one made bigint unusable.
2010-09-15 22:06:34 +00:00
David Simcha
9525e76cc5
Fix mysterious compiler crashes when building dfl.socket. The underlying problem is in DMD, though I don't know how to reproduce it. This is just a workaround.
2010-09-15 01:00:30 +00:00
David Simcha
1ec0042c6c
Fix bug where opApply iterables with length can't be converted to arrays.
2010-09-14 23:09:40 +00:00
Shin Fujishiro
f8b72a7c93
Fixed failure in std.path w/ endsWith.
...
- Changed global fixed-length string constants to manifest constants.
- Changed generic functions' parameters from String to Char[] to deal with fixed-length strings.
- Explicitly typed local constants (enums) in dirname().
2010-09-14 17:10:41 +00:00
Andrei Alexandrescu
1e4fd1db4e
Bugzilla 755
2010-09-14 03:31:16 +00:00
Andrei Alexandrescu
7d053a9af7
Bugzilla 626
2010-09-14 03:25:34 +00:00
Andrei Alexandrescu
3de6e43071
Bugzilla 535
2010-09-14 02:43:51 +00:00
Andrei Alexandrescu
a92a8a9c4e
Fix for bugzilla 4861
2010-09-13 22:58:10 +00:00
David Simcha
b1bb7afb36
Make sort work on sealed ranges that don't explicitly define moveFront() and friends as long as these are implicitly defined.
2010-09-13 22:57:12 +00:00
Don Clugston
d9cd5b19d0
Fix a regression caused by svn 1923. Broke 'createlink.d' in the test suite. Compiler doesn't like auto returns.
2010-09-13 14:28:36 +00:00
Andrei Alexandrescu
1515e2139f
Fix breaking unittests
2010-09-13 13:37:16 +00:00
Andrei Alexandrescu
eb6b17f27b
Fix Appender to accept input ranges
2010-09-13 13:36:52 +00:00
David Simcha
ff0c2b3d3b
Support moveFront() and friends and assignable elements where possible.
2010-09-13 01:53:39 +00:00
Andrei Alexandrescu
611f5a1c22
Generalized to having string types as target to accept input ranges of character types
2010-09-13 01:21:04 +00:00
Walter Bright
0b091d3eac
add Source link
2010-09-12 05:11:46 +00:00
David Simcha
89c9bf697d
Zip shouldn't require ranges to define moveFront and friends if elements don't have elaborate copy c'tors.
2010-09-12 04:46:48 +00:00
David Simcha
f7dbbfdedd
Assignable element support for Stride.
2010-09-12 04:08:40 +00:00
David Simcha
1015641e6f
Support assignable elements for Retro.
2010-09-12 03:49:13 +00:00
Walter Bright
3b0c94b1c9
giving source link a try
2010-09-11 20:08:39 +00:00
David Simcha
326760ef35
Iota should Unqual all its parameters to work w/ const/immutable since its parameters can't have indirection anyhow.
2010-09-09 20:46:37 +00:00
David Simcha
620c0b0191
Add at!() for std.typecons.Tuple to mitigate breakage of old code that depended on the Proxy struct from std.range.Zip. Intentionally lacking ddoc since this is purely a backwards compatibility hack that IMHO should be deprecated or removed entirely eventually.
2010-09-09 20:21:44 +00:00
David Simcha
497ea8f06b
randomShuffle should work with sealed ranges.
2010-09-09 19:52:19 +00:00
SHOO
b0cf3fa7d6
safe unittest does not work yet...
2010-09-09 13:08:39 +00:00
SHOO
1590330e4a
Fixed Bug4824
...
http://d.puremagic.com/issues/show_bug.cgi?id=4824
0.0 returns by environment.
systime always may not always return different values.
2010-09-09 12:52:39 +00:00
Shin Fujishiro
ac2b71d2e1
Fixed: std.algorithm.findAdjacent() returns non-empty range if no matching pair is found.
2010-09-08 21:48:06 +00:00
David Simcha
8a50942419
Fix memory corruption bug in std.array caused by having GC block attributes backwards.
2010-09-08 21:18:12 +00:00
Andrei Alexandrescu
efb5c12066
Fixed Zip, added SortedRange
2010-09-08 13:19:58 +00:00
Andrei Alexandrescu
249056c61d
Added convenience overload for emplace()
2010-09-08 13:05:04 +00:00
Andrei Alexandrescu
8c40564d31
Changed documentation format
2010-09-08 13:04:31 +00:00
Andrei Alexandrescu
fcfb07ff9b
Improvements to find() and startsWith(), removed crap, added SortedRange, added debug=std_algorithm
2010-09-08 13:03:47 +00:00
David Simcha
8aad9c0e38
Bug 4834: Implicit sharing via delegates in std.concurrency
2010-09-07 23:05:25 +00:00
Steven Schveighoffer
7641283d44
Removed cases for RefAppender where passed in array pointer is null. No point to do that, since you could just use the Appender directly instead.
2010-09-07 13:13:39 +00:00