Commit graph

200 commits

Author SHA1 Message Date
Shin Fujishiro
a3cabfb7e8 Fixed bug 4775: No substitution on writef("%%%s", "hi"). 2010-10-15 17:53:04 +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
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
Shin Fujishiro
96936a11a8 std.format: Added !isSomeString constraint to the const-array specialization of formatValue().
It conflicted with the specialization for strings.
2010-09-19 04:51:07 +00:00
Shin Fujishiro
f45f507a5f Fix (std.format): can't format const dynamic arrays. 2010-09-19 03:39:56 +00:00
SHOO
fe6cbe460b Fixed Bug4827
http://d.puremagic.com/issues/show_bug.cgi?id=4827
2010-09-18 13:57:08 +00:00
Andrei Alexandrescu
7d053a9af7 Bugzilla 626 2010-09-14 03:25:34 +00:00
Andrei Alexandrescu
3de6e43071 Bugzilla 535 2010-09-14 02:43:51 +00:00
David Simcha
79a1ebe615 Bug 4643: Shared values are unwritable 2010-09-04 16:01:08 +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
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
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
2c07d4f870 Readded complex support. Readded typedef support but deprecated. 2010-08-08 01:15:40 +00:00
Andrei Alexandrescu
04bf2b5bad Fixed windows unittest error 2010-07-29 06:06:25 +00:00
Andrei Alexandrescu
f39e2fee99 Readded support for creal (only). 2010-07-29 04:51:33 +00:00
Walter Bright
53564aa227 rename makefile, comment out mysteriously failing test 2010-07-29 03:59:17 +00:00
Andrei Alexandrescu
11ef039bb1 added support for formatted output of ranges of characters, fixed a couple of OSX issues 2010-07-28 08:07:40 +00:00
Andrei Alexandrescu
0fe7a951fb Changed w.put(e) with put(w, e) everywhere 2010-07-12 01:17:37 +00:00
Andrei Alexandrescu
956ff3b59e Radical overhaul. 2010-07-12 00:49:18 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Walter Bright
32c7b84c85 fix various unit test and test suite failures from std.format 2010-07-06 01:32:14 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Andrei Alexandrescu
01aa9c1511 Now all writers are passed by value 2010-07-04 21:44:42 +00:00
Shin Fujishiro
b2d816da2b Added changelog and unittest for bug 4109. 2010-06-16 00:27:45 +00:00
Shin Fujishiro
4ceb920f40 Fixed reopened bug 4109: writeln doesn't work with empty static array 2010-06-14 15:36:17 +00:00
Shin Fujishiro
56dadb568d Fixed bugzilla 4109: writeln doesn't work with empty static array.
The variable obj can be a static array of length zero. obj.ptr should be used.
2010-05-23 11:53:03 +00:00
Walter Bright
e790058bf4 invariant => immutable 2010-05-05 18:25:44 +00:00
Andrei Alexandrescu
2a9a6e336c string, wstring are now bidirectional (not random) ranges
std.algorithm: defined move with one argument; levenshtein distance generalized to with all forward ranges; take now has swapped arguments
std.array: empty for arrays is now a @property; front and back for a string and wstring automatically decodes the first/last character; popFront, popBack for string and wstring obey the UTF stride
std.conv: changed the default array formatting from "[a, b, c]" to "a b c"
std.range: swapped order of arguments in take
std.stdio: added readln template
std.variant: now works with statically-sized arrays and const data
std.traits: added isNarrowString
2010-02-22 15:52:31 +00:00
Walter Bright
d340dab9f3 inout to ref 2009-12-19 07:46:41 +00:00
Don Clugston
07e9bf7ab8 Remove erroneous return 2009-10-01 00:04:38 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Don Clugston
0fa1eb2473 Fix for bug #2398 2009-07-16 15:21:26 +00:00
Andrei Alexandrescu
ecd5a1de11 fixed unlisted bug in documentation 2009-07-11 18:59:26 +00:00
Andrei Alexandrescu
e336106541 minor 2009-07-04 06:59:56 +00:00
Walter Bright
bd4eadca71 implicit cast fixes 2009-06-07 05:03:17 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
2879e943e7 Added/modified a couple of unittests. 2009-04-29 21:33:03 +00:00
Andrei Alexandrescu
0d3ba39d3a fixed unlisted bug in formatting floating-point numbers 2009-04-28 23:05:37 +00:00
Andrei Alexandrescu
9ae66bb416 added raw specifier for reading 2009-04-23 09:01:55 +00:00
Andrei Alexandrescu
8ac32901db unlisted bug fix 2009-04-19 17:20:11 +00:00
Andrei Alexandrescu
dfef2a7214 Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back 2009-04-13 19:10:58 +00:00
Andrei Alexandrescu
4548c91a41 minor 2009-04-11 20:38:41 +00:00
Andrei Alexandrescu
b6a9ddf5f5 * Added vector parsing and printing with the specifier "%()". For
example, writefln("[%(s; )]", [1, 2, 3][]) writes "[1; 2; 3]". This
support is experimental and may be changed in the future.
* Added a formattedRead function (i.e., scanf that doesn't suck). The
implementation is incomplete but common cases are supported.
2009-04-06 17:15:35 +00:00
Andrei Alexandrescu
8d4be94177 * Added vector parsing and printing with the specifier "%()". For
example, writefln("[%(s; )]", [1, 2, 3][]) writes "[1; 2; 3]". This 
support is experimental and may be changed in the future.
* Added a formattedRead function (i.e., scanf that doesn't suck). The 
implementation is incomplete but common cases are supported.
2009-04-06 06:18:23 +00:00
Walter Bright
63a892d41e added overload for enums 2009-03-01 21:10:13 +00:00
Walter Bright
9e96cfb642 add std.c.math to phobos 2009-02-27 22:01:00 +00:00
Walter Bright
6c748fdfe1 fix makefile bug 2009-02-12 10:33:16 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Andrei Alexandrescu
98d1b0d507 minor improvements 2009-01-23 16:23:36 +00:00