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
Steven Schveighoffer
f5565aec67
Added RefAppender wrapper to appender that simulates original functionality (updates a reference when array is appended to)
2010-09-07 12:02:36 +00:00
Shin Fujishiro
95125b3077
std.conv: enh 4518 (diagnostic)
...
- Improved the error message of enum->string conversion failure to report the actual value encountered.
- Cleaned up the impl. of enum<->string converters with EnumMembers.
2010-09-05 01:40:07 +00:00
Shin Fujishiro
7a003d8cff
traits: Added EnumMembers for cleaning up std.conv to!enum.
2010-09-05 01:39:56 +00:00
David Simcha
817dc10f95
Fix hasElaborateCopyConstructor and hasElaborateAssign to look at whole representation. Also make std.range use hasElaborateCopyConstructor instead of rolling its own.
2010-09-04 19:35:27 +00:00
David Simcha
79a1ebe615
Bug 4643: Shared values are unwritable
2010-09-04 16:01:08 +00:00
David Simcha
f31b036712
Associative arrays have raw and local aliasing too.
2010-09-04 15:48:36 +00:00
David Simcha
7923b82cdd
Associative arrays have indirections.
2010-09-04 15:35:32 +00:00
David Simcha
d3614c89be
Bug 4748: Shadowing declaration error in std.string.tolower
2010-09-04 15:23:54 +00:00
David Simcha
0e48b8e238
Bug 4810: dotProduct problem with ints
2010-09-04 14:34:11 +00:00
David Simcha
6b799db785
Fix some trivial documentation issues from Bugzilla. No changes to actual code.
2010-09-03 23:28:05 +00:00
David Simcha
08cf0ed9c7
hasPostblit needs to transitively search subobjects.
2010-09-03 04:22:04 +00:00
David Simcha
76e5bfa517
Bug 4789: std.algorithm.sort bug
2010-09-03 03:51:54 +00:00
David Simcha
1725ddc8ed
std.algorithm.reduce() should throw on empty ranges and no explicit seed instead of silently returning bogus results.
2010-08-30 23:09:39 +00:00
David Simcha
f9e540579b
Make std.algorithm.reduce() work with opApply iteration.
2010-08-30 04:06:23 +00:00
David Simcha
47743cc50e
Small unlisted std.conv bug: to!string(pointer) doesn't work for void*.
2010-08-29 22:18:53 +00:00
Walter Bright
d70dd1538d
another stray auto => scope
2010-08-29 18:30:41 +00:00
David Simcha
fc8a926290
std.traits: Add isAssignable.
2010-08-29 00:05:56 +00:00
David Simcha
c35f82d6e3
Fix trivial bug in stopwatch that led to unittests failing to compile.
2010-08-29 00:02:27 +00:00
Sean Kelly
43bc41ca7a
Added core.atomic to import list.
2010-08-28 21:18:25 +00:00
Sean Kelly
4eb8e82481
Fixed build error.
2010-08-27 22:08:12 +00:00
SHOO
894b6f6876
AutoStart becomes a module-level enum.
...
Remove verboseness.
See also:
http://lists.puremagic.com/pipermail/phobos/2010-August/002148.html
2010-08-27 18:36:56 +00:00
Steven Schveighoffer
9eb8c37d5a
Fixed issue with readln not returning data when EOF is encountered.
2010-08-27 17:26:38 +00:00
Steven Schveighoffer
77d8957add
Oops, std.xml's usage of Appender was updated incorrectly
2010-08-27 13:39:02 +00:00
Shin Fujishiro
54b7c22526
Workaround for ICE bug 4738.
2010-08-27 03:44:15 +00:00
Steven Schveighoffer
6636569318
changed appender to prevent calling .clear on appenders of immutable or const data.
...
Removed buffer arg from std.xml.encode since most of the time the data is string data, and the buffer was defined as the same type.
Fixed std.format unittests to not use string-based appenders, since they now cannot be rewritten.
2010-08-26 19:05:09 +00:00
Steven Schveighoffer
399d8c0eaa
Upon discussion in the appender access bug, it was determined we could make the Appender able to use the entire memory block, not just the data passed in.
...
With this fix, Appender and builtin appending should both be callable on the same data without corruption, of course using the builtin append on data held
by an Appender will reallocate.
2010-08-26 17:04:44 +00:00
Steven Schveighoffer
7e89201cda
Rewrote Appender to be safer and to not corrupt memory.
...
Fixed all places that use appender to use the safer interface.
bugzilla 4681: Appender access violation
2010-08-26 11:49:50 +00:00
Shin Fujishiro
190c622030
Fixed std.stdio build problem on FreeBSD.
...
Moved `import core.sys.posix.stdio;` from version(OSX) to version(Posix) since now fseeko() is used on all Posix systems.
2010-08-26 06:05:56 +00:00
Walter Bright
b8ce58ccd1
detab sources
2010-08-23 02:14:45 +00:00
Andrei Alexandrescu
e44197f989
replaced ssize_t with sizediff_t
2010-08-22 21:57:39 +00:00
Andrei Alexandrescu
3f2b8c12ea
64-bit compatibility work
2010-08-22 20:55:22 +00:00
David Simcha
6d5e623f26
InputRangeObject/OutputRangeObject
2010-08-22 18:46:09 +00:00
SHOO
cf4ff42933
Fixed: dmd die of the generation of the document.
2010-08-22 15:21:51 +00:00
SHOO
08af0f5500
Added stopwatch module
...
Added StopWatch, Ticks, systime, apptime, comparingBenchmark, measureTime.
2010-08-22 15:11:33 +00:00
David Simcha
372641585f
Clean up std.range enforce vs. assert situation. Also, a few small fixes for bugs discovered while reading the code.
2010-08-22 14:51:36 +00:00
David Simcha
63c6e670a9
Fix boundary case bug in stride slicing.
2010-08-22 14:24:10 +00:00
Sean Kelly
3b1f4d0010
Added unit tests to verify static checking of occlusion.
2010-08-22 11:52:04 +00:00