Commit graph

4300 commits

Author SHA1 Message Date
k-hara
292b23b51c Use built-in tuple operations 2013-05-27 23:08:17 +09:00
k-hara
eadb9f928c Rename app to w
`w` (==`writer`) is better than `app`(==`appender`).
2013-05-27 23:08:16 +09:00
k-hara
1094a3fc0b Rename to areCompatibleTuples, and add small fix 2013-05-27 23:07:41 +09:00
k-hara
99619cbc72 Use T.init 2013-05-27 23:05:21 +09:00
k-hara
bb82877781 Remove unnecessary length member
It's automatically forwarded to expand.length through `alias this`.
2013-05-27 23:05:19 +09:00
k-hara
ff056812b0 Remove workaround for the compiler bug 4424 2013-05-27 23:05:17 +09:00
k-hara
cce4e4ebd7 Divide template and enclosed struct
The utility templates and functions are not necessary in Tuple struct.
2013-05-27 23:05:15 +09:00
k-hara
f4f57e89a5 Fix comment indent and style 2013-05-27 23:05:13 +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
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
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
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
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
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
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
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
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
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
Lars T. Kyllingstad
8a95cadf29 Make std.stdio.File 'package' accessible
This is required in the new std.process.
2013-04-30 21:03:56 +02:00
Hara Kenji
7b85f7a479 Merge pull request #1260 from denis-sh/fix-std.traits.hasElaborate-docs
Fix `std.traits.hasElaborate*` docs
2013-04-29 05:02:16 -07:00
Diggory Blake
752cccd34d Remove unnecessary default arguments 2013-04-28 18:22:03 +01:00
Jonathan M Davis
3e60ef9eca Merge pull request #1129 from jmdavis/decode
Fix Issue 9456 -  decodeFront is inconsistent in whether it pops elements off of the range or not
2013-04-27 23:10:27 -07:00
Diggory Blake
937800be34 Fixed a bunch of off-by-one errors in the regex code 2013-04-24 23:55:55 +01:00
Diggory Blake
53261c80dc Merge branch 'master' of https://github.com/D-Programming-Language/phobos 2013-04-24 20:56:47 +01:00
k-hara
9e178000a4 Enable test for issue 8321 2013-04-24 15:56:41 +09:00
Diggory Blake
5b808e575e Fixed regex loop-back stream to start from the correct position 2013-04-24 00:19:41 +01:00