Commit graph

194 commits

Author SHA1 Message Date
Jakob Ovrum
58b59a1d82 Add pure, nothrow and @safe to std.exception.handle's unittests where appropriate 2015-02-11 16:15:29 +09:00
Jakob Ovrum
6154858502 Add optional index argument to the opIndex handler of std.exception.handle 2015-02-11 16:15:21 +09:00
Jakob Ovrum
a0086a9e2f Add RangePrimitive.access and RangePrimitive.pop pseudo-primitives 2015-02-11 16:15:11 +09:00
Jakob Ovrum
4265c4e379 Change std.exception.handle to not use AliasThis 2015-02-11 12:15:44 +09:00
k-hara
611a9a1b9b fix property enforcement 2015-02-10 01:00:36 +09:00
Jakob Ovrum
36cf60b4bf Re-enabled opSlice for std.exception.handle now that bug 14057 is fixed 2015-01-31 14:52:35 +09:00
Jakob Ovrum
5e9006b908 Cleanup of #2724
Various semantic improvements
Documentation improvements
Disabled opSlice due to issue 14057
2015-01-27 13:20:33 +09:00
Robert burner Schadek
a570d9e7bc handle rework
some little style fixup

some update at less verbose tests

not sure if that is my fault

some fixes

some more fixes

docu fixes

removed else branches by alias this

quickfur fixes
2015-01-25 22:32:06 +01:00
H. S. Teoh
7514f8bd9c Fix spelling error in docs. 2015-01-07 16:45:33 -08:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
591d616dd5 avoid triggering issue 13745 in further improvements to come 2014-11-20 23:10:41 +03:00
Ilya Yaroshenko
efb880f651 move format to std.format
The reason is to do not import `std.uni` tables, `std.string` and
probably `std.algorithm`. Note that format is used in CTFE code and
`Exception` handing.

 And it is more comfortable to import `format` from `std.format`.

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

update std.conv scope import

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

move sfromat

add public import of sformat

use std.uni
2014-11-18 22:14:28 +03:00
Ilya Yaroshenko
c7e3c0f025 added scope import 2014-11-11 22:57:09 +03:00
Ilya Yaroshenko
6e27f89393 std.exception: clean imports
use format

use empty

use empty

use dup

remove tabs
2014-11-11 19:14:09 +03:00
Vladimir Panteleev
b1418c958b fix Issue 13450 - Add WindowsException and wenforce to std.exception
Also expose ErrnoException's errno field as a documented property
for consistency.
2014-09-11 15:41:20 +00:00
monarchdodra
fa10a4ec77 Use reinterpret cast is [does|may]PointTo
Instead of a straight up cast. Avoids problems related to opCast
or alias this, such as those in:
http://forum.dlang.org/thread/vldwvnuivsfwjozqiuup@forum.dlang.org
2014-08-30 10:25:39 +02:00
Joakim
dc67efc3c4 Deprecate std.c.string and move its contents to druntime 2014-07-13 12:47:26 -05:00
Dicebot
815c8e327e Merge enforceEx with enforce
Makes it possible to call `enforce!MyException` instead of `enforceEx!MyException`, eliminating
redundant notation. Old enforceEx is not deprecated but removed from documentation examples.
2014-06-30 12:37:25 +02:00
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