Commit graph

5569 commits

Author SHA1 Message Date
k-hara
8b390ae6c4 fix Issue 4999 - Add Kenji Hara's adaptTo() to Phobos
Add structuralCast and structuralDownCast in std.typecons
2013-05-27 21:01:11 +09:00
k-hara
41ac032548 Remove undocumented structuralCast in std.exception 2013-05-27 21:01:09 +09:00
Jonathan M Davis
d7d90c7749 Merge pull request #1310 from Diggsey/bitmanip-fixes
Fixed std.bitmanip unit test so that the intended behaviour of checking ...
2013-05-27 04:50:32 -07:00
David Nadlinger
dc4fe37080 Merge pull request #992 from monarchdodra/chunks
Update in chunks
2013-05-27 04:16:23 -07:00
monarch dodra
3e8a8cd887 fix typo in comment 2013-05-27 13:10:43 +02:00
Diggory Blake
be6f984726 Fixed std.bitmanip unit test so that the intended behaviour of checking both endian types is the actual behaviour 2013-05-27 11:26:48 +01:00
Andrei Alexandrescu
ae8f014eb7 @blackwhale's destruction 2013-05-26 20:14:13 -04:00
Andrei Alexandrescu
bff9bf231a @blackwhale's review 2013-05-26 15:15:47 -04:00
Andrei Alexandrescu
ac555de3aa Merge branch 'master' of github.com:D-Programming-Language/phobos into 5224 2013-05-26 12:23:28 -04:00
Alex Rønne Petersen
ddf5567f27 Merge pull request #1305 from dymk/ctfe-array
fix for calling .array() on ranges in CTFE
2013-05-26 00:56:02 -07:00
Dylan Knutson
5294809f53 fix for calling .array() on ranges in CTFE 2013-05-25 23:46:51 -07:00
Andrei Alexandrescu
e54288b6b7 Merge pull request #1231 from Safety0ff/master
Fix std.BigInt bug #9548 plus other new discovered bugs.
2013-05-25 23:36:32 -07:00
Andrei Alexandrescu
ebb14579ce Merge pull request #1273 from Diggsey/master
fix issue 9979 - regex back-looper bug
2013-05-25 23:35:14 -07:00
Andrej Mitrovic
0440437bd5 Merge pull request #1304 from majiang/patch-2
fix issue 10167
2013-05-25 14:55:16 -07:00
Andrej Mitrovic
e8c88a54e7 Merge pull request #1306 from WalterBright/toenum
immutable should be an enum
2013-05-25 14:54:30 -07:00
Walter Bright
a2c9066282 immutable should be an enum 2013-05-25 13:32:53 -07:00
majiang
d47fdc4d32 fix issue 10167 2013-05-26 00:39:33 +09:00
Johannes Pfau
d44104ed56 Make std.conv unittests independent of floating point rounding 2013-05-25 12:12:41 +02:00
Walter Bright
96c51fae9b Merge pull request #1297 from 9rnsr/fix10122
[REG2.063a] Issue 10122 - `Appender` doesn't work with disabled default construction
2013-05-20 12:12:44 -07:00
k-hara
fa3c481ba7 fix Issue 10122 - Appender doesn't work with disabled default construction 2013-05-21 00:14:00 +09:00
k-hara
8083744164 [Trivial] fix code style 2013-05-20 22:40:44 +09:00
Frank van Dijk
8f401a9199 fix Issue 10125 Unicode non-BMP decoding to dchar in stdio readln
strings were first decoded to wchars, each wchar was then separately
decoded to dchar, resulting in 2 dchars in the surrogate block instead
of 1 correct dchar.

added unit test to verify readln decoding of non-ASCII characters
2013-05-20 14:26:22 +02:00
Andrei Alexandrescu
14a4b923e7 Merge pull request #1295 from M-frankied/byLine-infloop
[10116] stdio.File.byLine repeats last line forever, readln(ref C[],R) r...
2013-05-19 15:16:45 -07:00
Andrej Mitrovic
a1ae5ceac8 Merge pull request #1292 from eco/fix-conv-wiki-macro
[trivial] Placement of WIKI ddoc macro in std.conv was corrupting docs
2013-05-19 04:46:34 -07:00
Frank van Dijk
a34861d80c [10116] stdio.File.byLine repeats last line forever, readln(ref C[],R) returns bad data
byLine expects readln to return with an empty buffer on end-of-stream,
which readln does not do for wchar and dchar. Also, the readln variant
that takes a terminator range returns incorrect concatenations of
lines because of the same issue. Fixed by setting buffer.length=0 in
readln for this case. Unit test updated to detect this issue.
2013-05-19 11:06:12 +02:00
Brad Anderson
9e374bc4e1 Placement of WIKI in std.conv was corrupting docs 2013-05-14 13:07:48 -06:00
Andrei Alexandrescu
c319b1578f Merge pull request #1291 from WalterBright/buildso
Add SONAME into shared phobos library Take 2
2013-05-14 09:17:52 -07:00
Walter Bright
871d238f6a add version to .so build 2013-05-13 23:17:12 -07:00
Dmitry Olshansky
ed349e1a51 workaround issue 9634 2013-05-13 10:25:05 +04:00
Andrei Alexandrescu
4f61925dbd Merge pull request #1288 from MrTact/master
Update to std.stdio documentation for File.readln variants
2013-05-12 12:14:53 -07:00
David Nadlinger
e8662efe02 Merge pull request #1279 from complexmath/fix_receiveTimeout
Fixed an issue where receiveTimeout might wait too long
2013-05-12 04:20:29 -07:00
David Nadlinger
57f310a400 Merge pull request #1284 from jmdavis/ctfe
Make UTC and LocalTime singletons be instantiated with CTFE.
2013-05-12 04:19:11 -07:00
Tim Keating
db6b492af3 Fix some borkage with documentation of File.readln variants; add a better example for File.readln(buf) that emphasizes the need to copy the buffer, since it is overwritten when read 2013-05-10 00:27:38 -05:00
Andrei Alexandrescu
2613bc8c3a Merge pull request #1287 from burner/bigintpure
BigInt pure Fixed issus #6850
2013-05-09 21:48:04 -07:00
Robert BuRnEr Schadek
cab595ec0f bigint pure
the only exception is toString as it takes a delegate and this makes
things more tricky
2013-05-10 05:23:44 +02:00
Robert BuRnEr Schadek
0bf5632e80 Merge branch 'master' into bigintpure
Conflicts:
	std/bigint.d
2013-05-09 06:40:26 +02:00
Robert BuRnEr Schadek
a686647f54 bigint purity 2013-05-09 06:24:26 +02:00
Alex Rønne Petersen
776ee9ef73 Merge pull request #1286 from NilsBossung/xformat
remove the last traces of xformat
2013-05-07 16:47:52 -07:00
Nils Boßung
cf7169c613 xformat -> format 2013-05-08 01:34:47 +02:00
Alex Rønne Petersen
9d98751385 Merge pull request #1272 from kyllingstad/std-process
std.process redesigned and reviewed
2013-05-07 12:25:58 -07:00
Diggory Blake
76435b2d66 Removed unused stream abstraction 2013-05-06 18:39:03 +01:00
Hara Kenji
04cbd00511 Merge pull request #1285 from jmdavis/deprecated
Move some deprecations along
2013-05-06 04:18:26 -07:00
jmdavis
49ad744b12 Removed some undocumented, deprecated functions from std.algorithm.
They were scheduled to be removed in January 2013 but weren't, so
they've been around as undocumented, and deprecated for a while now.
2013-05-05 16:34:25 -07:00
jmdavis
ce1b2294b0 Undocument some deprecated functions.
They were marked for removal in the docs (many of them were intended to
be removed in January), so now they've been removed from the docs and
marked for removal from the code in November.
2013-05-05 16:34:25 -07:00
jmdavis
68f0b6d159 Deprecate xformat and xsformat.
They were intended to be temporary, and now format and sformat use their
exact implementations and have for 6 months (though for some reason, xformat
and xsformat weren't turned into aliases when that happened, which I fixed
in this commit as well).
2013-05-05 16:16:50 -07:00
jmdavis
a445982fb8 Make UTC and LocalTime singletons be instantiated with CTFE.
Yay! It's now possible to instantiate classes at compile time and then
use them at runtime.
2013-05-04 21:07:11 -07:00
Lars T. Kyllingstad
07466cde53 std.process redesigned
This is a complete redesign of std.process. It has passed the community
review and is now ready for inclusion in Phobos master.

Review and vote:
http://forum.dlang.org/thread/gclsbrghhjitnfderoos@forum.dlang.org
http://forum.dlang.org/thread/mgstnugckomjpvdgpudz@forum.dlang.org
2013-05-01 10:22:19 +02:00
Sean Kelly
429b12b185 fixed receiveTimeout to not wait beyond the specified limit in the event of multiple internal waits 2013-04-30 13:13:20 -07:00
Lars T. Kyllingstad
aa57a2a161 Renamed File.isPipe to isPopened
Now that std.process will support pipe creation, the name isPipe will
only cause confusion, as it will in fact be false for "normal" anonymous
pipes.  It is only true for files opened by popen(), and its purpose is
simply to ensure they are closed with pclose().
2013-04-30 21:07:33 +02:00
Lars T. Kyllingstad
28abab44cf StdioException: No system error msg when errno==0 2013-04-30 21:05:28 +02:00