Commit graph

30 commits

Author SHA1 Message Date
jmdavis
ed22f41ec2 Fix for issue# 8398. 2012-07-22 00:40:25 -07:00
jmdavis
6c289a8969 Fix unnecessary template bloat in enforce.
The version of enforce which takes the file and line number as template
arguments has been scheduled for deprecation and has been replaced with
one which takes them as function arguments. The only code that this will
effect is code which explicitly passes the file or line number to
enforce.
2012-07-21 20:00:36 -07:00
alexrp
adcac57526 Use errno instead of getErrno in Phobos. 2012-07-09 01:26:02 +02:00
jmdavis
8b6e9ea176 Deprecated the version of enforceEx which was scheduled for deprecation. 2012-03-10 19:09:35 -08:00
jmdavis
091609ca1e Moved February deprecations to March.
Having the January deprecations and February deprecations in the same
month seems a bit much to me, since we managed to have both of those
months have quite a few, whereas the next few months have very few if
any. And we're close to release too, so I'd prefer to avoid causing
issues by deprecating them now.
2012-02-11 02:44:46 -08:00
k-hara
c121a5d836 Fix unpaired parentheses in ddoc. 2012-01-23 22:53:43 +09:00
k-hara
ed0cd25c66 Allow partial instantiation of enforceEx. 2012-01-23 22:53:42 +09:00
k-hara
d493815bfe Supplemental changes for 3235 & 6714 2011-12-31 14:39:05 +09:00
k-hara
17e87a472d Revert "Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout""
This reverts commit fef20ede25.
2011-12-15 17:34:09 +09:00
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
jmdavis
256976dddd Removed "scheduled for deprecation" pragmas.
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
k-hara
fef20ede25 Revert "Merge pull request #284 from 9rnsr/fix6208_on_inout"
This change will be required after finxing bug6208.

This reverts commit e669812d26, reversing
changes made to 5ffd5b34e8.
2011-10-13 12:44:45 +09:00
k-hara
42324e028b fix6208 on inout 2011-10-02 22:08:46 +09:00
jmdavis
bf852fb575 Attempt to fix circular dependency on Mac OS X. 2011-10-01 21:44:31 -07:00
k-hara
5a6c0a5a07 Change line's types receives __LINE__ into size_t in std.exception 2011-09-24 18:26:48 +09:00
k-hara
9ed1d7ac3c Add @safe and pure to enforce family. 2011-09-23 06:48:58 +09:00
jmdavis
9162311564 Fixed std.exception.enforceEx so that it gives proper file and line numbers.
The version which took an exception type which could be constructed
with a message but no file and line number has been scheduled for
deprecation.
2011-08-25 23:34:19 -07:00
jmdavis
29cafe3d22 Made most of the overloads for enforce @safe.
The delegate version isn't @safe, but that would require conditional
attributes and/or multiple overloads where the delegate is @safe,
@trusted, or @system. I'm not quite sure what it would take, so I'm
leaving it alone for now.
2011-06-09 02:44:41 -07:00
denis-sh
0367aabe68 Fixed incorrect commit 416f01ec documentation fix (!! added, because !a == false equals to !!a == true (it is correct for reals and it is impossible to overload it apart for structs (impossible to overload it for classes anyhow)).
Fixed incorrect pointer arithmetic with dynamic arrays in pointsTo.
Added support for static arrays in pointsTo. If there is a reason not to support it, add static assert(0); instead of my code in such case because of unexpected behaviour.

P.S.
Lets avoid pointer arithmetic in phobos when possible! Maybe it's time to find all pointers and fix it?
2011-05-30 03:12:59 -07:00
jmdavis
2f0ba9afab Slight adjustment to note on enforce. 2011-03-21 21:48:47 -07:00
jmdavis
416f01ec75 Some documentation improvements for enforce per suggestions on the newsgroup. 2011-03-17 20:20:32 -07:00
jmdavis
13c0266fbb Updates to std.exception per suggestions on pull request #12 of D-Programming-Language / phobos. 2011-02-27 04:58:33 -08:00
jmdavis
169f4225bf Unit test helper functions which were recently voted into Phobos.
assertPred did not pass the vote, so it is not included. However, the
remaining functions passed and have been included.
2011-02-24 20:07:00 -08:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Shin Fujishiro
0339b6acde Made std.exception.pointsTo "@trusted pure nothrow".
Also made it tolerant of shared objects. It's @trusted to cast shared away because the function just compares the addresses of passed objects.
2010-11-18 21:26:03 +00:00
Masahiro Nakagawa
2a37d92088 Remove @safe from assumeUnique. @safe function doesn't allow casting of mutable object to immutable. 2010-11-14 03:52:15 +00:00
Masahiro Nakagawa
57d08c37e3 Added pure, nothrow and @safe to assumeUnique function 2010-11-14 01:46:34 +00:00
Shin Fujishiro
5adac0d493 Fixed unlisted bug: std.exception.pointsTo() calls postblit on subobjects. 2010-09-17 21:39:52 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Andrei Alexandrescu
2f98916995 Added to replace std.contracts 2010-07-04 22:06:28 +00:00