Lars T. Kyllingstad
ccede5e9e6
Made tempPath() use Win API function GetTempPath()
2012-05-03 00:15:39 +02:00
Don Clugston
bd72ae7d36
Fix issue 8011 BigInt ++ and -- do wrong thing on negative numbers
...
Patch by Ary Borenszweig
2012-05-02 20:40:14 +02:00
k-hara
c1aa44b250
Revert a part of pull #558
2012-05-02 23:54:21 +09:00
Sean Kelly
6364c4e622
Merge pull request #562 from alexrp/master
...
Kill some public imports of core.sync.* in std.concurrency.
2012-05-01 23:43:47 -07:00
David Simcha
c98ef58218
Merge pull request #558 from kyllingstad/std-path-improvements
...
std.path improvements
2012-05-01 19:53:18 -07:00
alexrp
539134396a
Kill some public imports of core.sync.* in std.concurrency.
2012-05-02 04:46:54 +02:00
David Simcha
17c1e3f3d1
Merge pull request #554 from jmdavis/joiner
...
Added documentation to undocumented overload of std.algorithm.joiner.
2012-05-01 19:23:32 -07:00
darkstalker
f8173c0425
std.json: properly handle large ulong values (bigger than 2^63-1)
...
store large ulong values in JSONValue.uinteger instead of throwing an overflow exception
2012-05-01 19:44:51 -04:00
darkstalker
2d625ddc6f
std.json: implement opIndex in struct JSONValue for accessing elements with array/hash syntax
2012-05-01 19:40:47 -04:00
Lars T. Kyllingstad
48cd943bf5
Added std.file.tempDir()
2012-05-01 14:04:39 +02:00
Lars T. Kyllingstad
c80bb85897
std.complex: Minor doc improvement
2012-05-01 11:54:56 +02:00
Lars T. Kyllingstad
03295d1ebc
Added std.complex.expi()
...
Also added Don as author, since there are several functions in
std.complex, including expi(), that are copied more or less verbatim
from std.math.
2012-05-01 10:44:15 +02:00
Lars T. Kyllingstad
34bc329af8
std.complex: Cleanup
...
Moved some stuff around, removed some extraneous whitespace, made
function documentation more consistent.
2012-05-01 10:27:26 +02:00
Lars T. Kyllingstad
5b4351d425
std.complex: Moved abs, arg & conj to module level
...
Backwards compatibility is preserved through the magic of UFCS.
2012-05-01 10:10:30 +02:00
Lars T. Kyllingstad
a0cb29e077
std.path: Note all memory allocations in docs
...
Most functions represent simple and cheap string-slicing operations. In
some cases, however, new memory must be allocated, and this increases
the cost of the operation by orders of magnitude. As some of these
cases may not be very obvious, I think it is best they are explicitly
mentioned in the documentation.
2012-05-01 09:10:08 +02:00
Lars T. Kyllingstad
6813b56d9f
More consistent std.path docs
...
Specifically, the documentation for all functions is now written in
descriptive rather than imperative form.
2012-05-01 08:05:37 +02:00
Lars T. Kyllingstad
4f598ffcb0
std.path: Added more function attributes
...
Improvements in the compiler have made it possible to fix some old
TODOs.
2012-04-30 23:31:50 +02:00
Francois Chabot
07d34c1ae0
Fix for BUG 4744, enum parsing will now test every member and select the one with the longest matching string
2012-04-29 19:58:03 -07:00
Vladimir Panteleev
e4a6e1b928
std.file: Disable Windows file creation time test
...
Deleting and immediately recreating a file doesn't seem to
always reset the file creation time.
2012-04-29 17:33:33 +03:00
Vladimir Panteleev
85c062fc70
Merge branch 'master' into std-file-windows-attributes
...
Conflicts:
std/file.d
2012-04-29 17:32:05 +03:00
dawg
afbc6f1df7
avoid performance penalty for scope (success)
2012-04-29 15:03:21 +02:00
Jonathan M Davis
cd0ce7df2b
Merge pull request #521 from blackwhale/fix-doc
...
fix isTwoWay compatible description and implementation
2012-04-29 00:34:50 -07:00
Jonathan M Davis
b08a0f90c6
Merge pull request #457 from CyberShadow/std-process-command-escaping
...
std.process: Command escaping functions
2012-04-29 00:29:23 -07:00
jmdavis
2b9d1552b3
Added documentation to undocumented overload of std.algorithm.joiner.
2012-04-28 02:24:02 -07:00
Joseph Rushton Wakeling
34c7d2f9ec
Tweaks to authorship & comments.
2012-04-26 22:27:23 +02:00
Joseph Rushton Wakeling
a47707a197
Rewrite of RandomSample to use Jeffrey Scott Vitter's Algorithm D.
...
This algorithm calculates a random sample of size n in O(n) time,
generating O(n) random variates, as opposed to the previously
implemented Algorithm S where both scale with the size of the
data being sampled.
Variable names in the implementation follow those in Vitter's
papers introducing the algorithm:
* Vitter, J. S. (1984) Faster methods for random sampling.
Commun. ACM 27(7): 703--718.
* Vitter, J. S. (1987) An efficient algorithm for sequential
random sampling. ACM Trans. Math. Softw. 13(1): 58--67.
2012-04-24 17:45:12 +02:00
Denis Shelomovskij
4430ee9a47
fix Issue 7975 - Incorrect quotes escaping in std.format
2012-04-23 19:45:22 +04:00
Hara Kenji
2cdd101ddb
Merge pull request #546 from Aatch/std-algoritm-skipOver
...
Fix and improvements to skipOver unitttests
2012-04-22 23:06:09 -07:00
James Miller
7ee38df89f
Only unittest changes now
2012-04-23 16:21:11 +12:00
David Simcha
9233d3d20d
Merge pull request #545 from eco/iota-pop-empty
...
fix Issue 7944 - std.range.iota.popFront() cycles when the range is empty
2012-04-22 18:02:17 -07:00
David Simcha
b1252f35af
Merge pull request #547 from eco/iota-unsigned-odd
...
fix Issue 6222 - A problem with iota() using size_t
2012-04-22 17:52:56 -07:00
David Simcha
70ad8e4aae
Merge pull request #548 from blackwhale/fix-captures
...
fix Issue 7962 Captures.length() returns incorrect value
2012-04-22 17:44:30 -07:00
Denis Shelomovskij
e01210d131
Fix typo leading to incorrect empty result
...
* also improve style a bit
2012-04-22 15:35:27 +04:00
Dmitry Olshansky
6c9414c8c9
fix Issue 7962 Captures.length() returns incorrect value
2012-04-22 01:05:37 +04:00
Andrei Alexandrescu
1b75b2b289
Merge pull request #231 from 9rnsr/fix6595
...
Issue 6595 - std.string.format() and sformat() are obsolete
2012-04-21 09:59:07 -07:00
k-hara
3ae3fe6d38
fix Issue 5358 - std.functional.binaryReverseArgs missing from documentation
2012-04-21 15:49:48 +09:00
k-hara
e2c892fdbf
fix Issue 7878 - A problem with purity and general templated algorithms
2012-04-21 15:48:30 +09:00
Hara Kenji
803aa7ccb0
Merge pull request #482 from Dav1dde/conv2
...
Bug 7660, incorrect toImpl overload for struct with alias this to class
2012-04-20 22:23:09 -07:00
Jonathan M Davis
49f3ca2e55
Merge pull request #518 from CyberShadow/std-datetime-optimize-filetime
...
std.datetime: Remove redundant SYSTEMTIME step when converting FILETIME
2012-04-20 20:53:37 -07:00
Brad Anderson
23bfcd766f
Add index < length assert to iota.opIndex
2012-04-20 21:12:09 -06:00
Brad Anderson
6b92abb044
fix Issue 6222 - A problem with iota() using size_t
...
If the common type of begin and end is unsigned and end is 0 the private
member pastEnd ends up being unsigned.max due to "pastEnd - 1" (used to make
end not inclusive) which results in iota behaving incorrectly. A simple change
to always make an empty range when begin==end prevents this.
Also fixed and clarified the documentation.
2012-04-20 20:34:10 -06:00
James Miller
c1ad954895
more skipOver changes
...
Combined the string predicate and function parameter types.
Added a skipWhile function that skips over a range while pred is true,
returns the skippedOver range.
2012-04-20 22:11:08 +12:00
James Miller
d52a1ec8b9
skipOver now supports delegates as predicates
2012-04-20 22:11:08 +12:00
James Miller
03673b188f
Fixed up code
2012-04-20 19:09:32 +12:00
Brad Anderson
028699fe6c
fix Issue 7944 - std.range.iota.popFront() cycles when the range is empty
...
Added !empty assertions to front, popFront, back, and popBack to the integer
iota like some other ranges do. Also added the one that was missing to the
floating point iota.
2012-04-20 00:26:51 -06:00
David Herberth
30246dab37
changed toImpl fix as proposed
2012-04-19 20:22:17 +02:00
David Herberth
53c36a7dbb
reworked fix
2012-04-19 20:22:17 +02:00
David Herberth
30d9405ad4
added tests for bug 7660
2012-04-19 20:16:31 +02:00
David Herberth
d0b88f9cd2
fixed toImpl conflict
2012-04-19 20:16:31 +02:00
Dmitry Olshansky
ab611521fa
quick shot at ctRegex issue 7740
...
Stopped by issue 6419 "CTFE nested structs ... not implemented"
2012-04-19 19:54:51 +04:00