Commit graph

76 commits

Author SHA1 Message Date
David Nadlinger
fd67ac9fb2 Merge pull request #2265 from jmdavis/exception
Slight improvement to enforceEx's constraints and its documentation.
2014-06-23 08:36:55 +02:00
jmdavis
7b6123f6a6 Slight improvement to enforceEx's constraints and its documentation. 2014-06-21 23:27:37 -07:00
jmdavis
c800058aca Move along some overdue deprecations. 2014-06-20 04:37:13 -07:00
monarchdodra
9ae2084e53 Add interface test in pointsTo 2014-05-31 13:44:11 +02:00
monarchdodra
1210f1beff Rewrite pointsTo documentation 2014-05-14 21:59:02 +02:00
monarchdodra
c885157507 Change pointsTo to mayPointTo and doesPointTo 2014-05-14 21:58:02 +02:00
monarchdodra
0fa82b2cb1 Rename pointTo as doesPointTo, insert deprecated alias 2014-05-14 21:57:59 +02:00
monarchdodra
0fcc5302f5 Re-implement "pointsTo" as "doesPointTo" 2014-05-14 21:56:30 +02:00
monarchdodra
0ed127124c Implement "isUnionAliased" 2014-05-14 21:56:29 +02:00
monarchdodra
15a9ae7941 Duplicate pointsTo as "doesPointTo" 2014-05-14 21:56:22 +02:00
Andrej Mitrovic
20d91e6f3f Fix Issue 6793 - Document that assumeUnique may not be necessary in some contexts. 2014-04-23 14:56:40 +02:00
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00
Tomoya Tanjo
aa97c944c3 Mark std.exception.ErrnoException.this as @trusted 2014-03-12 15:03:43 +09:00
Per Nordlöw
275db682a5 Issue 3882: Explicitly capture return values for strictly pure functions returning non-void 2014-03-09 18:55:07 +01:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Brad Anderson
53c226c569 () should be used instead of {} for ddoc macro 2014-01-01 23:03:10 -07:00
Martin Nowak
c445f1c288 Merge pull request #1766 from jmdavis/deprecations
Move various deprecations along.

Conflicts:
    std/algorithm.d
    std/zip.d
2013-12-19 23:33:47 +01:00
Daniel Murphy
1818d190b5 More implicit array to bool 2013-12-15 19:55:34 +11:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00
Daniel Murphy
13f343334c Remove cases where an array is used in a boolean context 2013-11-27 18:23:07 +11:00
Andrej Mitrovic
c97904bf4f Merge pull request #1571 from quickfur/assumeWontThrow
Implement assumeWontThrow.
2013-10-24 14:36:14 -07:00
Andrej Mitrovic
ed727e0cc4 assertThrown doesn't need to use a variable for a throw check. 2013-09-14 18:55:01 +02:00
H. S. Teoh
278a65a20f Improve wording in docs. 2013-09-12 15:08:50 -07:00
H. S. Teoh
21ac3614e1 Implement assumeWontThrow. 2013-09-12 14:25:24 -07:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Andrej Mitrovic
62f6459b49 Fix Issue 10510 - enforce should take any callable function without regard for calling conventions. 2013-07-01 19:40:28 +02:00
k-hara
ed03c4af01 Fix trivial nitpicks 2013-06-20 10:54:20 +09:00
David Nadlinger
fcfc3220ff Fix std.exception.ifThrown tests in release mode.
As the unit test is not @safe, bounds checking is disabled
when building with -release.
2013-06-17 13:35:08 +02:00
monarch dodra
dfb8c27bb2 Improve documentation/testing for pointsTo 2013-06-16 20:35:27 +02:00
monarch dodra
e44adcd9ed Fix Issue 9975 - pointsTo asserts because of false pointer in union 2013-06-16 16:39:56 +02:00
Walter Bright
7b0a1219fd Merge pull request #1329 from 9rnsr/fix10220
[REG2.064a] Issue 10220 - `array` doesn't work with disabled default construction
2013-06-04 22:30:00 -07:00
k-hara
e2d991b005 Move checkCTFEable to std.exception.assertCTFEable, and use it 2013-06-02 02:32:24 +09:00
k-hara
41ac032548 Remove undocumented structuralCast in std.exception 2013-05-27 21:01:09 +09: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
Alex Rønne Petersen
3fd69b6ebc Merge pull request #1090 from someboddy/add-ml-style-exception-handling
Add ML style exception handling
2013-03-08 15:23:51 -08:00
IdanArye
370b84f1d5 Added ML style functional exception handling.
Using the new "ifThrown" function in the std.exception module.
2013-03-09 00:13:48 +02:00
Andrej Mitrovic
e2831a5f2a Fixes Issue 9265 - assertNotThrown should emit msg from thrown exception if available. 2013-03-02 16:16:53 +01:00
Andrej Mitrovic
aaa6854eb7 Fixes Issue 9373 - Add deprecation messages to Phobos. 2013-01-23 02:44:08 +01:00
k-hara
7062ce191a fix Issue 2486 - taking address of slice rvalue is valid 2012-12-03 14:40:24 +09:00
k-hara
01df2f60be Remove redundant parenthesis for getters, and use assignment syntax for setters 2012-11-23 15:07:17 +09:00
monarch dodra
706d109e0b pointsTo unittests 2012-11-01 17:47:03 +01:00
monarch dodra
469bc6bda9 structs with embeded Static arrays
Because they can contain pointers...
2012-11-01 17:31:41 +01:00
monarch dodra
b5e14d654c pointsTo support for static arrays 2012-11-01 17:31:40 +01:00
Dmitry Olshansky
7714a9c42e Fix issue 8637
Compiler can and should deduce purity of templates
2012-09-11 11:31:29 +04:00
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