Commit graph

1777 commits

Author SHA1 Message Date
k-hara
3bb892cbef Revert 'removing feature using to' and add deprecation message. 2011-07-07 08:19:01 +09:00
k-hara
4d069ae1fe Remove incorrect documentation. 2011-07-07 08:19:01 +09:00
k-hara
7dfc4ff1a4 Improve std.conv.to
1. Remove conversion feature using member template function to!T() of user type.
2-1. Support conversion feature using opCast!T() with aggregate types.
2-2. Support conversion feature using constructor like T(s) with struct types.
2011-07-07 08:19:00 +09:00
k-hara
9c04bee411 Replace std.conv.implicitlyConverts to std.traits.isImplicitlyConvertible
The two templates has same purpose, but bit different behaviors.
implicitlyConverts(S, T) has following semantics:
   is(S : T) and allow initializer conversion (T t = s; -> T t = T(s);)
   Including initializer conversion is inconvenience for my to!() improvement in after commits, so replace it.
2011-07-07 08:19:00 +09:00
k-hara
2f14157e46 Issue 6197 - std.traits.isImplicitlyConvertible returns some wrong results. 2011-07-07 08:19:00 +09:00
k-hara
91bceb08f2 Remove parens with single template parameter. 2011-07-07 08:18:59 +09:00
k-hara
833ce93da2 Fix toImpl's template constraints order (relation with S and T -> constraint of S -> constraint of T) for code readability. 2011-07-07 08:18:59 +09:00
Don Clugston
ea8e37d350 denormalizedException -> subnormalException
The term "denormal" is deprecated by IEEE, and should be replaced by
"subnormal" in all cases. Fix all the comments to make sure this confusion
doesn't happen again.
2011-07-05 08:06:23 +02:00
Andrei Alexandrescu
3231c5ef32 Merge pull request #132 from kennytm/bug6090extra
(Bug 6090) Remove the DDoc specialization for std.random.uniform.
2011-07-04 11:25:35 -07:00
dsimcha
d204bdbe93 Merge branch 'master' of https://github.com/D-Programming-Language/phobos 2011-07-04 13:33:19 -04:00
KennyTM~
852aa7d723 Remove the DDoc specialization for std.random.uniform.
Since Bug 6090 has been fixed, there is no need to have a special StdDdoc version
for std.random.uniform which replaces the unmatched ')' with '$(RPAREN)', as shown
in http://d-programming-language.org/phobos/std_random.html#uniform.
2011-07-04 17:39:53 +08:00
jmdavis
09b7cf618b Adjusting deprecation dates for a July release. 2011-07-04 01:46:26 -07:00
Jonathan M Davis
da0fd9dbf8 Merge pull request #101 from jmdavis/string
Improvements for std.string, std.uni, and std.ctype.
2011-07-03 00:12:57 -07:00
Andrei Alexandrescu
96d34d5eca Merge pull request #129 from donc/ctfeAppend
CTFE support for Appender
2011-07-02 17:33:37 -07:00
David Simcha
db02d05422 Merge pull request #124 from jmdavis/deprecation
Scheduled the version of receiveTimeout which takes a long for deprecation.
2011-07-02 09:40:50 -07:00
David Simcha
25372043f7 Merge pull request #127 from yebblies/fix3483
Fix3483 - Stop using read-modify-write operations on enums
2011-07-02 09:37:33 -07:00
David Simcha
2312ba224a Merge pull request #121 from jmdavis/datetime
Renamed endOfMonthDay to daysInMonth.
2011-07-02 09:34:13 -07:00
jmdavis
a755151446 Some adjustments so that std.string compiles with the recent compiler changes. 2011-06-29 21:43:07 -07:00
jmdavis
88c829ca7f Merge branch 'master' into string 2011-06-29 21:25:39 -07:00
Don Clugston
337a6182d3 CTFE support for Appender
Makes a large chunk of Phobos usable in CTFE. Fixes:
5632 replace() not evaluatable at compile-time anymore

This is still not very efficient, for CTFE it's a bit more efficient to just
use ~= for appending.
2011-06-30 03:12:25 +02:00
Don Clugston
e3c1185692 IEEE exceptions and status flags are properties
They are all global properties of the processor, so it makes a lot of sense
for them to look like global variables.
2011-06-30 02:12:57 +02:00
Jens K. Mueller
77aa890a72 Add denormalizedException
The denormalizedException is set whenever a denormalized value is
manipulated or created. It is useful to know that denormalized values
are generated because it indicates that precision is low.
Further performance of denormalized number can be up to 100 times slower
even when handled in hardware (see Table 2 in "Quantifying the
Interference Caused by Subnormal Floating-Point Values" by Isaac Dooley
and Laxmikant Kale).
2011-06-30 02:12:57 +02:00
Daniel Murphy
cbe7a73852 Swap the order to allow numeric enums to be read as enums. 2011-06-30 08:14:30 +10:00
Daniel Murphy
fd8797a84d Stop using read-modify-write operations on enums in std.socket 2011-06-30 08:12:54 +10:00
Daniel Murphy
dc0beb97dc Fix unlisted bug found by implementing http://d.puremagic.com/issues/show_bug.cgi?id=5399.
InputRangeObject.popBack calls back when it should call popBack.
2011-06-30 02:39:47 +10:00
Walter Bright
5c7d8bed61 pass improved value range propagation 2011-06-27 12:02:39 -07:00
jmdavis
708f1c16d3 Scheduled the version of receiveTimeout which takes a long for deprecation. 2011-06-26 22:16:45 -07:00
jmdavis
e3a592b126 Merged latest master into branch with std.datetime changes.
Conflicts:
	std/datetime.d
2011-06-26 21:14:16 -07:00
Walter Bright
bb53c94eb5 safe function isn't safe 2011-06-26 20:41:03 -07:00
Walter Bright
4f28db6ffb not really pure 2011-06-25 19:58:09 -07:00
jmdavis
a6ef12b6c9 Renamed endOfMonthDay to daysInMonth.
endOfMonthDay is too close to endOfMonth, and std.date had daysInMonth
(which amounts to the same thing), so I'm renaming endOfMonthDay to
daysInMonth. So, endOfMonthDay is now scheduled for deprecation. I also
adjusted the various deprecation messages related to std.datetime so
that they included the month when the items in question would be deprecated.
2011-06-25 09:03:48 -07:00
jmdavis
558cc04e68 Renamed expandTabs to detab. 2011-06-22 21:57:34 -07:00
jmdavis
7de549c1fa Merged master into branch with changes to std.string.
Conflicts:
	changelog.dd
	std/array.d
2011-06-22 21:38:17 -07:00
jmdavis
75352b99b8 Improved module documentation for std.ascii and std.uni. 2011-06-22 21:00:09 -07:00
jmdavis
84f1329cbb Renamed isUniAlpha to isAlpha.
isUniAlpha is now scheduled for deprecation.
2011-06-22 20:46:34 -07:00
jmdavis
0ca76972fe Renamed toUniLower and toUniUpper to toLower and toUpper.
toUniLower and toUniUpper are now scheduled for deprecation.
2011-06-22 20:34:08 -07:00
jmdavis
face0202ec Renamed isUniLower and isUniUpper to isLower and isUpper.
isUniLower and isUniUpper are now scheduled for deprecation.
2011-06-22 20:33:53 -07:00
jmdavis
e3f7c0c288 Renamed isUniWhite to isWhite. 2011-06-22 19:44:36 -07:00
jmdavis
15fb65f1bb Reverted toAsciiLower and toAsciiUpper to toLower and toUpper. 2011-06-22 19:22:27 -07:00
jmdavis
25b755a843 Reverted isAsciiWhite to isWhite. 2011-06-22 19:20:15 -07:00
jmdavis
34bce538ce Reverted isAsciiLower and isAsciiUpper to isLower and isUpper. 2011-06-22 19:13:45 -07:00
Andrei Alexandrescu
d6c471bcff Merge pull request #113 from kennytm/bug5873
Issue 5873 - Cannot call iota() on long with step
2011-06-22 07:19:12 -07:00
Steven Schveighoffer
91ef3b4350 Split lines that were too long 2011-06-22 09:13:55 -04:00
Steven Schveighoffer
6452327a1b Fixed issue 6193: Appender.clear() functionality or documentation 2011-06-22 09:09:52 -04:00
KennyTM~
252c29be22 Notice about bug 4040. 2011-06-22 14:47:45 +08:00
jmdavis
fde6d40447 Merge in pull request #92 of D-Programming-Language / phobos.
Conflicts:
	std/array.d
2011-06-21 21:22:04 -07:00
Andrei Alexandrescu
0b26f67636 Merge pull request #96 from dsimcha/master
uninitializedArray
2011-06-21 21:01:45 -07:00
jmdavis
308df18f16 Added an example to std.utf.codeLength. 2011-06-21 19:36:01 -07:00
jmdavis
1684abf962 Revert "Fixed codeLength fatal misprint."
This reverts commit 1fc3a08fcb.
2011-06-21 19:22:33 -07:00
Andrei Alexandrescu
452926cf0a Merge pull request #105 from blackwhale/regexp-to-regex
make dirEntries return InputRange (formly regex to regexp)
2011-06-21 11:55:27 -07:00