Masahiro Nakagawa
3af7a383d1
Fix typo and error handling changed from assert to throw Exception
2010-11-02 09:58:13 +00:00
Masahiro Nakagawa
f15ab73731
Replace base64 module
2010-11-01 19:58:34 +00:00
SHOO
aa8ab63026
Fixed: Bug 5130
...
http://d.puremagic.com/issues/show_bug.cgi?id=5130
writeln now accepts delegate.
2010-10-29 17:07:50 +00:00
Don Clugston
9d7622586a
Fix for BigInt assign for 64 bit compilers. Also a few steps towards const correctness, and some comment fixes.
2010-10-25 07:30:38 +00:00
Lars T. Kyllingstad
7aa2077935
To use isTuple, std.format needs to import std.typecons in non-unittest mode as well
2010-10-22 13:21:02 +00:00
Steven Schveighoffer
6fb30a1b5e
Fixed static destructor so sockets aren't closed on every thread exit in windows. (see bug 4344 and 4951)
...
Fixed unlisted bug, there could be a race condition on linux with gethostbyname and gethostbyaddr, now synchronizing entire processing of hostent struct.
2010-10-19 13:15:30 +00:00
Shin Fujishiro
a3cabfb7e8
Fixed bug 4775: No substitution on writef("%%%s", "hi").
2010-10-15 17:53:04 +00:00
Shin Fujishiro
0de1aa86b7
Fixed bug 3570: mkdirRecurse throws exception on trailing empty directory.
...
Just made it recognize trailing '/' by seeing if the basename of specified path is empty.
2010-10-15 17:52:54 +00:00
Shin Fujishiro
258e0b6f1c
Fixed bug 5049: bringToFront() returns wrong value.
...
- Fixed the return value.
- Made bringToFront() handle stepping-over conditions correctly.
- Added undocumented SList.Range.sameHead for making the example code work.
2010-10-15 17:52:43 +00:00
Lars T. Kyllingstad
53275d8851
5052: take!(Take!R) should return Take!R, not Take!(Take!R)
2010-10-14 07:15:19 +00:00
Shin Fujishiro
3ec3fee75a
Ddoc: Fixed bug 4634 and some trivial doc isues in std.algorithm & range.
...
- Bug 4634: typo in levenshteinDistanceAndPath documentation
- Got rid of mentions of iterator-age begin(r)
- equal() not equals()
2010-10-13 05:40:03 +00:00
Shin Fujishiro
3c048ac456
Migration of tup.field[k] to tup[k].
...
Replaced ad-hoc 'is tuple?' checks with isTuple template.
The "this._cache" change in std.range is just a workaround for bug 5046.
2010-10-13 05:39:53 +00:00
David Simcha
1fd3b635c5
Bug 5035: Schrödinger's Stride
2010-10-13 00:18:02 +00:00
Masahiro Nakagawa
36dd6b3007
Add ByChunk to std.stdio.File
2010-10-11 21:59:08 +00:00
Sean Kelly
d9a37f5b47
Changed PriorityMessageException to hold a variant instead of being a template class. This is required to support priority messages received from another process, and also sidesteps a number of implementation issues with the old approach as well. The drawback is that TDPL describes prioritySend as working the old way. This change had to happen at some point however, and better now than later. Next will be to add functionality to PriorityMessageException to simplify introspection and extraction of the message contained.
...
Greatly simplified the code in places and tuned somewhat for performance as well. Normal send/receive is about 25% faster now, and prioritySend is 200 times faster (yes, 20,000%).
Added a unittest or two and verified that they still pass :-p
2010-10-08 21:19:35 +00:00
Sean Kelly
125c011249
Made LinkTerminated message work like OwnerTerminated (ie. the user can trap it in a receive call).
2010-10-08 17:36:15 +00:00
Sean Kelly
b8d0976c69
Fixed unittest hang. I thought I'd already checked in this change, but I guess not.
2010-10-08 17:31:38 +00:00
Sean Kelly
be63564a50
Minimal support for shared types within a Variant.
2010-10-07 21:27:13 +00:00
Sean Kelly
d04c21a806
Minimal support for toString use on shared objects. format now generates a meaningful compile error when attempting to format a shared object, and Tuple can now contain shared objects (the toString operation returns typeinfo for the object instead of calling toString).
2010-10-07 20:44:06 +00:00
Sean Kelly
96ebdb366c
Fixed receive() so it properly handles functions accepting a Tuple argument.
2010-10-07 20:42:06 +00:00
Sean Kelly
5744b5000c
Fixed user handling of the OwnerTerminated message so it will not always throw.
2010-10-07 14:19:04 +00:00
SHOO
15f5f6e8f2
Fixed: Bug 5003
...
regex(replace with delegate) sample doesn't work.)
http://d.puremagic.com/issues/show_bug.cgi?id=5003
2010-10-06 18:21:19 +00:00
Don Clugston
d184cf3264
BinaryHeap was silently broken because of the unspeakably ridiculous C 'function type' syntax. That syntax must die.
2010-10-04 07:03:23 +00:00
Andrei Alexandrescu
61cc023db7
Removed slack filter() code; changed filter such that filter is curryable
2010-10-03 18:39:33 +00:00
Andrei Alexandrescu
362bece515
Fix for bugzilla 3318
2010-10-03 02:21:15 +00:00
Don Clugston
c0912ecb70
C function pointers -> D syntax
2010-10-02 02:42:48 +00:00
Sean Kelly
4bfacb565c
Fixed an issue where a receive() resulting in a thrown exception caused messages to be lost.
2010-09-30 20:57:44 +00:00
Sean Kelly
e398c7b452
Fixed an issue where priority messages were being added to both the priority and the standard message queues. This improves performance by an order of magnitude or more, but still leaves priority messaging substantially slower than normal messaging. Looking for more issues.
2010-09-30 18:08:42 +00:00
Sean Kelly
ba51dffa9d
Fixed Variant to accept types that are copy constructible but not default constructible.
2010-09-30 18:00:56 +00:00
Lars T. Kyllingstad
7c67d7a9bc
4959: std.conv.parse error "no digits seen" on string starting with zero
2010-09-30 13:42:58 +00:00
Shin Fujishiro
50fb1511ed
Mark std.socket unittests broken because they succeed or fail depending on running environment.
2010-09-29 04:54:25 +00:00
Shin Fujishiro
1c0cc7c128
Hook a strange HostException failure in win32 unittest.
...
For some reason std.socket unittest fails with HostException on win32 AutoTester. It used to succeed before; it also succeeds on my environment (FreeBSD, Gentoo and Wine).
2010-09-29 03:36:55 +00:00
Shin Fujishiro
58e3ae0a8a
This would fix the runnable/testdate failure.
2010-09-27 05:18:23 +00:00
Shin Fujishiro
df582acd89
Fix (build failure): no pclose() on Windows
2010-09-27 04:02:55 +00:00
Andrei Alexandrescu
822a29cf89
unittest to avoid regression for bugzilla 3181
2010-09-27 01:22:14 +00:00
Andrei Alexandrescu
a50363c605
Fix for bugzilla 3157
2010-09-27 01:11:25 +00:00
Andrei Alexandrescu
3973b5e4cc
Fix for bugzilla 2944
2010-09-27 01:10:12 +00:00
Andrei Alexandrescu
f978014c36
Fix for bugzilla 2965
2010-09-26 23:15:17 +00:00
Andrei Alexandrescu
05bf376c17
Fix for bugzilla 2944
2010-09-26 22:45:48 +00:00
Andrei Alexandrescu
58b0b79703
Fix for bugzilla 2930
2010-09-26 22:28:31 +00:00
Andrei Alexandrescu
b315a8be5e
Fix for bugzilla 2838 and others regarding isdir and isfile
2010-09-26 22:09:38 +00:00
Andrei Alexandrescu
460c844b4f
Fix for bugzilla 2718
2010-09-26 21:19:14 +00:00
Andrei Alexandrescu
5248dc6b3f
Fix for bugzilla 2669
2010-09-26 20:33:55 +00:00
Andrei Alexandrescu
adfdda427e
Fix for bugzilla 2655
2010-09-26 20:02:47 +00:00
Andrei Alexandrescu
6dded8e278
Added function balancedParens
2010-09-26 19:54:34 +00:00
Andrei Alexandrescu
f0b2af7f07
Added function balancedParens
2010-09-26 19:52:44 +00:00
Andrei Alexandrescu
98a9719f42
Fix for fix for bugzilla 1733
2010-09-26 19:03:48 +00:00
Andrei Alexandrescu
8692f08f19
Fix for bugzilla 1733
2010-09-26 19:02:37 +00:00
Andrei Alexandrescu
075e438b74
Fix for bugzilla 2424
2010-09-26 18:32:50 +00:00
Andrei Alexandrescu
90438d574d
Fix for bugzilla 2310
2010-09-26 18:27:45 +00:00